cufftAllocFailed in 2D classification



Hi all,

After the particle extraction in CryoSparc, I did the 2D classification. There was an error as belows:

Traceback (most recent call last):
File “cryosparc2_compute/jobs/”, line 1481, in run_with_except_hook
run_old(*args, **kw)
File “cryosparc2_worker/cryosparc2_compute/engine/”, line 110, in
File “cryosparc2_worker/cryosparc2_compute/engine/”, line 111, in
File “cryosparc2_worker/cryosparc2_compute/engine/”, line 991, in
File “cryosparc2_worker/cryosparc2_compute/engine/”, line 109, in cryosparc2_compute.engine.engine.EngineThread.load_image_data_gpu
File “cryosparc2_worker/cryosparc2_compute/engine/”, line 33, in cryosparc2_compute.engine.gfourier.fft2_on_gpu_inplace
File “/data/home/cryosparc_user/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/”, line 126, in init
onembed, ostride, odist, self.fft_type, self.batch)
File “/data/home/cryosparc_user/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/”, line 741, in cufftMakePlanMany
File “/data/home/cryosparc_user/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/”, line 116, in cufftCheckStatus
raise e

What can I do to fix this?



Hi @Shasha,

What was the box size of the particles, and the number of classes?

The error means that the GPU is running out of GPU memory during 2D classification. This would happen if the box size is very very large (unlikely) or if there is another process using the GPU at the same time (e.g Relion, etc).

You can check for other processes using the command line tool