@saberli Please can you test CUDA device initialization outside CryoSPARC with these commands
cd $(mktemp -d)
/spshared/apps/cryosparc4/cryosparc_worker/bin/cryosparcw call python -m venv cudatest
. cudatest/bin/activate
pip install cuda-python~=12.8.0
# paste and run this multiline command
python <<EOF
from cuda.bindings import driver as cuda
# Try to initialize CUDA
try:
result = cuda.cuInit(0)[0]
if result == cuda.CUresult.CUDA_SUCCESS:
print("CUDA initialized successfully!")
device_count = cuda.cuDeviceGetCount()[1]
print(f"Found {device_count} CUDA device(s)")
else:
print(f"CUDA initialization failed with error code: {result}")
except Exception as e:
print(f"Error during CUDA initialization: {e}")
EOF
# record output of command above
# then clean up
deactivate
rm cudatest/ -r
and post the output.