# Cuda\_cache\_maxsize

**URL:** <https://forums.developer.nvidia.com/t/cuda-cache-maxsize/184345>\
**Category:** CUDA Setup and Installation\
**Created:** [July 21, 2021, 5:01pm UTC](https://forums.developer.nvidia.com/t/cuda-cache-maxsize/184345 "2021-07-21T17:01:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mteresa.jurado.parras](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mteresa.jurado.parras](https://forums.developer.nvidia.com/u/mteresa.jurado.parras)\
**Post date:** [July 21, 2021, 5:01pm UTC](https://forums.developer.nvidia.com/t/cuda-cache-maxsize/184345/1 "2021-07-21T17:01:24Z")

</div>

Hi all!

We are running an open-source software, kilosort 2.5, which you can be download from here  
[GitHub - MouseLand/Kilosort: Fast spike sorting with drift correction for up to a thousand channels](https://github.com/MouseLand/Kilosort). We run kilosort on Matlab 2020a and with CUDA toolkit version 10.1. We installed and used the software without any problem but after 2 weeks of use the computer started to crash and reboot. Following an answer to this issue [Kilosort2 crashing and restarting computer · Issue #75 · MouseLand/Kilosort · GitHub](https://github.com/MouseLand/Kilosort/issues/75) we set an environment variable "CUDA\_CACHE\_MAXSIZE " on the machine and set the cache to 1073741824. After this kilosort doesn’t failed again but I am afraid that I damaged the GPU somehow while I ran kilosort 2.5 before I increased CUDA\_CACHE\_MAXSIZE. We have another computer in the lab in which happened the same issue, but we didn’t change the CUDA\_CACHE\_MAXSIZE and the computer end up crashing at any moment and with a broken GPU. What am I doing increasing CUDA CACHE? Do you think that changing CUDA\_CACHE\_MAXSIZE could prevent GPU from breaking? How much can I increase CUDA\_CACHE\_MAXSIZE?  
Thank you!
