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

Hello,

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/pipeline.py”, line 59, in exec
return self.process(item)
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/run_patch.py”, line 190, in cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/run_patch.py”, line 193, in cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/run_patch.py”, line 195, in cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/patchmotion.py”, line 251, in cryosparc_compute.jobs.motioncorrection.patchmotion.unbend_motion_correction
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/patchmotion.py”, line 602, in cryosparc_compute.jobs.motioncorrection.patchmotion.unbend_motion_correction
File “cryosparc_worker/cryosparc_compute/engine/cuda_core.py”, 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/gpuarray.py”, 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.

Best,
Wil

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: https://guide.cryosparc.com/setup-configuration-and-management/hardware-and-system-requirements

Harris