I’ve so far been successful with NU refines locked to a single GPU. However, using the same GPU that has been working, I’ve now had another error in NU refine, this time a CUDA_OUT_OF_MEMORY error:
========= sending heartbeat at 2026-10-09 03:52:55.248519
========= sending heartbeat at 2026-10-09 03:53:05.265776
========= sending heartbeat at 2026-10-09 03:53:15.283072
gpufft: creating new cufft plan (plan id 0 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 480 0
istride 1
idist 230400
onembed 480 480 0
ostride 1
odist 230400
batch 500
type C2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 1 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 480 0
istride 1
idist 230400
onembed 480 480 0
ostride 1
odist 230400
batch 500
type C2C
wkspc automatic
Python traceback:
HOST ALLOCATION FUNCTION: using numba.cuda.pinned_array
/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/nvrtc.py:257: UserWarning: NVRTC log messages whilst compiling kernel:
kernel(35): warning #68-D: integer conversion resulted in a change of sign
kernel(44): warning #68-D: integer conversion resulted in a change of sign
kernel(17): warning #177-D: variable "N_I" was declared but never referenced
warnings.warn(msg)
<string>:1: UserWarning: Cannot manually free CUDA array; will be freed when garbage collected
========= sending heartbeat at 2026-10-09 03:53:25.300863
========= sending heartbeat at 2026-10-09 03:53:35.318247
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/plotutil.py:571: RuntimeWarning: divide by zero encountered in log
logabs = n.log(n.abs(fM))
========= sending heartbeat at 2026-10-09 03:53:45.336759
gpufft: creating new cufft plan (plan id 2 pid 264256)
gpu_id 0
ndims 3
dims 480 480 480
inembed 480 480 482
istride 1
idist 111052800
onembed 480 480 241
ostride 1
odist 55526400
batch 1
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 3 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 500
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 4 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 500
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:53:55.353953
/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/dispatcher.py:536: NumbaPerformanceWarning: Grid size 1 will likely result in GPU under-utilization due to low occupancy.
warn(NumbaPerformanceWarning(msg))
========= sending heartbeat at 2026-10-09 03:54:05.371779
gpufft: creating new cufft plan (plan id 5 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 132
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:54:15.389860
<string>:1: UserWarning: Cannot manually free CUDA array; will be freed when garbage collected
gpufft: creating new cufft plan (plan id 6 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 453
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 7 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 453
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:54:25.407205
========= sending heartbeat at 2026-10-09 03:54:35.424491
gpufft: creating new cufft plan (plan id 8 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 9
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:54:45.441613
gpufft: creating new cufft plan (plan id 9 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 418
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 10 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 418
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:54:55.458578
========= sending heartbeat at 2026-10-09 03:55:05.475814
gpufft: creating new cufft plan (plan id 11 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 288
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:55:15.493201
gpufft: creating new cufft plan (plan id 12 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 391
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 13 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 391
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:55:25.509586
========= sending heartbeat at 2026-10-09 03:55:35.526825
gpufft: creating new cufft plan (plan id 14 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 114
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 03:55:45.543228
gpufft: creating new cufft plan (plan id 15 pid 264256)
gpu_id 0
ndims 3
dims 480 480 480
inembed 480 480 482
istride 1
idist 111052800
onembed 480 480 241
ostride 1
odist 55526400
batch 1
type R2C
wkspc manual
Python traceback:
========= sending heartbeat at 2026-10-09 03:55:55.552903
gpufft: creating new cufft plan (plan id 16 pid 264256)
gpu_id 0
ndims 3
dims 240 240 240
inembed 240 240 121
istride 1
idist 6969600
onembed 240 240 242
ostride 1
odist 13939200
batch 1
type C2R
wkspc manual
Python traceback:
<string>:1: UserWarning: Cannot manually free CUDA array; will be freed when garbage collected
========= sending heartbeat at 2026-10-09 03:56:05.570227
<string>:1: RuntimeWarning: invalid value encountered in true_divide
========= sending heartbeat at 2026-10-09 03:56:15.587814
gpufft: creating new cufft plan (plan id 17 pid 264256)
gpu_id 0
ndims 3
dims 480 480 480
inembed 480 480 241
istride 1
idist 55526400
onembed 480 480 482
ostride 1
odist 111052800
batch 1
type C2R
wkspc manual
Python traceback:
========= sending heartbeat at 2026-10-09 03:56:25.605363
========= sending heartbeat at 2026-10-09 03:56:35.623227
========= sending heartbeat at 2026-10-09 03:56:45.639777
========= sending heartbeat at 2026-10-09 03:56:55.656202
========= sending heartbeat at 2026-10-09 03:57:05.670495
========= sending heartbeat at 2026-10-09 03:57:15.688496
========= sending heartbeat at 2026-10-09 03:57:25.704810
========= sending heartbeat at 2026-10-09 03:57:35.721892
<string>:1: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
========= sending heartbeat at 2026-10-09 03:57:45.739202
========= sending heartbeat at 2026-10-09 03:57:55.756204
========= sending heartbeat at 2026-10-09 03:58:05.773192
========= sending heartbeat at 2026-10-09 03:58:15.790637
========= sending heartbeat at 2026-10-09 03:58:25.809200
========= sending heartbeat at 2026-10-09 03:58:35.825198
========= sending heartbeat at 2026-10-09 03:58:45.841203
========= sending heartbeat at 2026-10-09 03:58:55.903701
========= sending heartbeat at 2026-10-09 03:59:05.920656
========= sending heartbeat at 2026-10-09 03:59:15.937606
========= sending heartbeat at 2026-10-09 03:59:25.954199
<string>:1: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
========= sending heartbeat at 2026-10-09 03:59:35.974332
========= sending heartbeat at 2026-10-09 03:59:45.991285
========= sending heartbeat at 2026-10-09 03:59:56.009538
========= sending heartbeat at 2026-10-09 04:00:06.027417
========= sending heartbeat at 2026-10-09 04:00:16.045364
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/sigproc.py:660: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
x = n.linalg.lstsq(w.reshape((-1,1))*A, w*b)[0]
========= sending heartbeat at 2026-10-09 04:00:26.063033
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/plotutil.py:571: RuntimeWarning: divide by zero encountered in log
logabs = n.log(n.abs(fM))
========= sending heartbeat at 2026-10-09 04:00:36.080341
========= sending heartbeat at 2026-10-09 04:00:46.098593
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/plotutil.py:44: RuntimeWarning: invalid value encountered in sqrt
cradwn = n.sqrt(cradwn)
========= sending heartbeat at 2026-10-09 04:00:56.115818
========= sending heartbeat at 2026-10-09 04:01:06.134253
========= sending heartbeat at 2026-10-09 04:01:16.152673
gpufft: creating new cufft plan (plan id 18 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 146
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 19 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 146
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:01:26.172547
========= sending heartbeat at 2026-10-09 04:01:36.189988
========= sending heartbeat at 2026-10-09 04:01:46.208579
========= sending heartbeat at 2026-10-09 04:01:56.226388
========= sending heartbeat at 2026-10-09 04:02:06.243258
========= sending heartbeat at 2026-10-09 04:02:16.261238
========= sending heartbeat at 2026-10-09 04:02:26.278832
========= sending heartbeat at 2026-10-09 04:02:36.296477
========= sending heartbeat at 2026-10-09 04:02:46.313900
========= sending heartbeat at 2026-10-09 04:02:56.325279
gpufft: creating new cufft plan (plan id 20 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 4
type R2C
wkspc automatic
Python traceback:
<string>:1: UserWarning: Cannot manually free CUDA array; will be freed when garbage collected
gpufft: creating new cufft plan (plan id 21 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 187
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 22 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 187
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:03:06.343838
========= sending heartbeat at 2026-10-09 04:03:16.361466
========= sending heartbeat at 2026-10-09 04:03:26.379353
========= sending heartbeat at 2026-10-09 04:03:36.395017
========= sending heartbeat at 2026-10-09 04:03:46.412333
========= sending heartbeat at 2026-10-09 04:03:56.429205
========= sending heartbeat at 2026-10-09 04:04:06.446199
========= sending heartbeat at 2026-10-09 04:04:16.474452
========= sending heartbeat at 2026-10-09 04:04:26.491919
gpufft: creating new cufft plan (plan id 23 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 32
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:04:36.509248
gpufft: creating new cufft plan (plan id 24 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 217
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 25 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 217
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:04:46.527657
========= sending heartbeat at 2026-10-09 04:04:56.545540
========= sending heartbeat at 2026-10-09 04:05:06.563581
========= sending heartbeat at 2026-10-09 04:05:16.580820
========= sending heartbeat at 2026-10-09 04:05:26.598803
========= sending heartbeat at 2026-10-09 04:05:36.616104
========= sending heartbeat at 2026-10-09 04:05:46.625218
========= sending heartbeat at 2026-10-09 04:05:56.643938
========= sending heartbeat at 2026-10-09 04:06:06.662351
gpufft: creating new cufft plan (plan id 26 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 191
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:06:16.679927
gpufft: creating new cufft plan (plan id 27 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 239
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 28 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 239
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:06:26.697639
========= sending heartbeat at 2026-10-09 04:06:36.716014
========= sending heartbeat at 2026-10-09 04:06:46.734735
========= sending heartbeat at 2026-10-09 04:06:56.751239
========= sending heartbeat at 2026-10-09 04:07:06.768771
========= sending heartbeat at 2026-10-09 04:07:16.784774
========= sending heartbeat at 2026-10-09 04:07:26.802598
========= sending heartbeat at 2026-10-09 04:07:36.817823
========= sending heartbeat at 2026-10-09 04:07:46.826287
gpufft: creating new cufft plan (plan id 29 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 133
type R2C
wkspc automatic
Python traceback:
========= sending heartbeat at 2026-10-09 04:07:56.844486
========= sending heartbeat at 2026-10-09 04:08:06.863064
========= sending heartbeat at 2026-10-09 04:08:16.881355
<string>:1: RuntimeWarning: invalid value encountered in true_divide
========= sending heartbeat at 2026-10-09 04:08:26.899427
========= sending heartbeat at 2026-10-09 04:08:36.918543
========= sending heartbeat at 2026-10-09 04:08:46.936948
========= sending heartbeat at 2026-10-09 04:08:56.957195
========= sending heartbeat at 2026-10-09 04:09:06.976799
========= sending heartbeat at 2026-10-09 04:09:16.984375
========= sending heartbeat at 2026-10-09 04:09:27.002662
========= sending heartbeat at 2026-10-09 04:09:37.021187
<string>:1: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
========= sending heartbeat at 2026-10-09 04:09:47.039194
========= sending heartbeat at 2026-10-09 04:09:57.057185
========= sending heartbeat at 2026-10-09 04:10:07.075227
========= sending heartbeat at 2026-10-09 04:10:17.092675
========= sending heartbeat at 2026-10-09 04:10:27.111819
========= sending heartbeat at 2026-10-09 04:10:37.130759
========= sending heartbeat at 2026-10-09 04:10:47.147204
========= sending heartbeat at 2026-10-09 04:10:57.171754
========= sending heartbeat at 2026-10-09 04:11:07.190196
========= sending heartbeat at 2026-10-09 04:11:17.212193
<string>:1: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
========= sending heartbeat at 2026-10-09 04:11:27.230193
========= sending heartbeat at 2026-10-09 04:11:37.248203
========= sending heartbeat at 2026-10-09 04:11:47.266245
========= sending heartbeat at 2026-10-09 04:11:57.283892
========= sending heartbeat at 2026-10-09 04:12:07.302088
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/sigproc.py:660: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
x = n.linalg.lstsq(w.reshape((-1,1))*A, w*b)[0]
========= sending heartbeat at 2026-10-09 04:12:17.320245
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/plotutil.py:571: RuntimeWarning: divide by zero encountered in log
logabs = n.log(n.abs(fM))
========= sending heartbeat at 2026-10-09 04:12:27.338246
/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/plotutil.py:44: RuntimeWarning: invalid value encountered in sqrt
cradwn = n.sqrt(cradwn)
========= sending heartbeat at 2026-10-09 04:12:37.356086
========= sending heartbeat at 2026-10-09 04:12:47.373201
========= sending heartbeat at 2026-10-09 04:12:57.392033
========= sending heartbeat at 2026-10-09 04:13:07.410245
========= sending heartbeat at 2026-10-09 04:13:17.429049
========= sending heartbeat at 2026-10-09 04:13:27.447612
========= sending heartbeat at 2026-10-09 04:13:37.466287
========= sending heartbeat at 2026-10-09 04:13:47.484236
========= sending heartbeat at 2026-10-09 04:13:57.493272
========= sending heartbeat at 2026-10-09 04:14:07.511207
========= sending heartbeat at 2026-10-09 04:14:17.562475
========= sending heartbeat at 2026-10-09 04:14:27.581500
========= sending heartbeat at 2026-10-09 04:14:37.599824
========= sending heartbeat at 2026-10-09 04:14:47.617199
========= sending heartbeat at 2026-10-09 04:14:57.635192
========= sending heartbeat at 2026-10-09 04:15:07.653545
========= sending heartbeat at 2026-10-09 04:15:17.672128
========= sending heartbeat at 2026-10-09 04:15:27.690789
========= sending heartbeat at 2026-10-09 04:15:37.708594
========= sending heartbeat at 2026-10-09 04:15:47.725785
========= sending heartbeat at 2026-10-09 04:15:57.743915
gpufft: creating new cufft plan (plan id 30 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 39
type R2C
wkspc automatic
Python traceback:
<string>:1: UserWarning: Cannot manually free CUDA array; will be freed when garbage collected
========= sending heartbeat at 2026-10-09 04:16:07.761616
gpufft: creating new cufft plan (plan id 31 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 313
type R2C
wkspc automatic
Python traceback:
gpufft: creating new cufft plan (plan id 32 pid 264256)
gpu_id 0
ndims 2
dims 480 480 0
inembed 480 482 0
istride 1
idist 231360
onembed 480 241 0
ostride 1
odist 115680
batch 313
type R2C
wkspc automatic
Python traceback:
**custom thread exception hook caught something
**** handle exception rc
Traceback (most recent call last):
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 851, in _attempt_allocation
return allocator()
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 1054, in allocator
return driver.cuMemAlloc(size)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 348, in safe_cuda_api_call
return self._check_cuda_python_error(fname, libfn(*args))
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 408, in _check_cuda_python_error
raise CudaAPIError(retcode, msg)
numba.cuda.cudadrv.driver.CudaAPIError: [CUresult.CUDA_ERROR_OUT_OF_MEMORY] Call to cuMemAlloc results in CUDA_ERROR_OUT_OF_MEMORY
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/jobs/runcommon.py", line 2306, in run_with_except_hook
run_old(*args, **kw)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "cryosparc_master/cryosparc_compute/engine/newengine.py", line 2730, in cryosparc_master.cryosparc_compute.engine.newengine.process.work
File "cryosparc_master/cryosparc_compute/engine/newengine.py", line 2913, in cryosparc_master.cryosparc_compute.engine.newengine.process.work
File "cryosparc_master/cryosparc_compute/engine/newengine.py", line 763, in cryosparc_master.cryosparc_compute.engine.newengine.EngineThread.compute_ctf
File "cryosparc_master/cryosparc_compute/gpu/gpucore.py", line 398, in cryosparc_master.cryosparc_compute.gpu.gpucore.EngineBaseThread.ensure_allocated
File "/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/gpu/gpuarray.py", line 376, in empty
return device_array(shape, dtype, stream=stream)
File "/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/gpu/gpuarray.py", line 332, in device_array
arr = GPUArray(shape=shape, strides=strides, dtype=dtype, stream=stream)
File "/srv2/home/lab/cryosparc/cryosparc_worker/cryosparc_compute/gpu/gpuarray.py", line 127, in __init__
super().__init__(shape, strides, dtype, stream, gpu_data)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/devicearray.py", line 103, in __init__
gpu_data = devices.get_context().memalloc(self.alloc_size)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 1372, in memalloc
return self.memory_manager.memalloc(bytesize)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 1056, in memalloc
ptr = self._attempt_allocation(allocator)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 863, in _attempt_allocation
return allocator()
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 1054, in allocator
return driver.cuMemAlloc(size)
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 348, in safe_cuda_api_call
return self._check_cuda_python_error(fname, libfn(*args))
File "/srv2/home/lab/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 408, in _check_cuda_python_error
raise CudaAPIError(retcode, msg)
numba.cuda.cudadrv.driver.CudaAPIError: [CUresult.CUDA_ERROR_OUT_OF_MEMORY] Call to cuMemAlloc results in CUDA_ERROR_OUT_OF_MEMORY
set status to failed
========= main process now complete at 2026-10-09 04:16:17.780590.
========= monitor process now complete at 2026-10-09 04:16:17.786286.
So I’m wondering if all of these problems are due to improperly installed Nvidia/CUDA drivers?
Here is the output of nvidia-smi (one NU refine currently running):
+-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 580.178.04 Driver Version: 580.178.04 CUDA Version: 13.0 | +-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 2080 Ti Off | 00000000:18:00.0 Off | N/A | | 39% 54C P8 8W / 250W | 189MiB / 11264MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 1 NVIDIA GeForce RTX 2080 Ti Off | 00000000:3B:00.0 Off | N/A | | 30% 38C P8 6W / 250W | 9MiB / 11264MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 2 NVIDIA GeForce RTX 2080 Ti Off | 00000000:86:00.0 Off | N/A | | 30% 36C P8 5W / 250W | 9MiB / 11264MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 3 NVIDIA GeForce RTX 2080 Ti Off | 00000000:AF:00.0 Off | N/A | | 30% 35C P8 21W / 250W | 9MiB / 11264MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 7096 G /usr/lib/xorg/Xorg 4MiB | | 0 N/A N/A 395496 C python 162MiB | | 1 N/A N/A 7096 G /usr/lib/xorg/Xorg 4MiB | | 2 N/A N/A 7096 G /usr/lib/xorg/Xorg 4MiB | | 3 N/A N/A 7096 G /usr/lib/xorg/Xorg 4MiB | +-----------------------------------------------------------------------------------------+
Do you see any red flags? I’m confused - it seems we have CUDA 13.0 as a result of installating the Nvidia 580 dirver - but cryosparc 4.7.1 is said to include CUDA 11.8. Which one will cryosparc end up using?
Thanks!
Louis