pycuda._driver.MemoryError: cuMemAlloc failed: out of memory


I am using Cuda 11.2 on Ubuntu 16.04 with GeForce GTX 980 Ti/PCIe/SSE2 and cryosparc v3.1.0. I am trying to perform Patch motion correction (multi) with ~3000 tiff movies, and I am recieving this error:

Error occurred while processing J6/imported/VLP_30k_1003_Oct14.tif
Traceback (most recent call last):
File “/home/salmen/programs/cryosparc/cryosparc_worker/cryosparc_compute/jobs/”, line 59, in exec
return self.process(item)
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/”, line 190, in
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/”, line 193, in
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/”, line 195, in
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/”, line 251, in
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/”, line 602, in
File “cryosparc_worker/cryosparc_compute/engine/”, line 339, in cryosparc_compute.engine.cuda_core.EngineBaseThread.ensure_allocated
File “/home/salmen/programs/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.7/site-packages/pycuda/”, line 210, in init
self.gpudata = self.allocator(self.size * self.dtype.itemsize)
pycuda._driver.MemoryError: cuMemAlloc failed: out of memory

Marking J6/imported/VLP_30k_1003_Oct14.tif as incomplete and continuing…

Please let me know what I should do to overcome this error.


1 Like

Hi @wsalmen,

Unfortunately the 980 Ti, with only 6 GB of VRAM, is very limited, and technically below the minimum specification required to run cryoSPARC. I suspect that the only way to overcome that error is to upgrade your GPU. You can see more information about cryoSPARC’s minimum system requirements here: