cudaCheckStatus raise e cudaErrorInsufficientDriver

open

#1

I have cryosparc installed on my Ubuntu 16.04 and I get the below error after I updated and started using Cuda 10.1

Traceback (most recent call last): File "cryosparc2_compute/jobs/runcommon.py", line 1490, in run_with_except_hook run_old(*args, **kw) File "cryosparc2_worker/cryosparc2_compute/engine/cuda_core.py", line 110, in cryosparc2_compute.engine.cuda_core.GPUThread.run File "cryosparc2_worker/cryosparc2_compute/engine/cuda_core.py", line 111, in cryosparc2_compute.engine.cuda_core.GPUThread.run File "cryosparc2_worker/cryosparc2_compute/engine/engine.py", line 991, in cryosparc2_compute.engine.engine.process.work File "cryosparc2_worker/cryosparc2_compute/engine/engine.py", line 109, in cryosparc2_compute.engine.engine.EngineThread.load_image_data_gpu File "cryosparc2_worker/cryosparc2_compute/engine/gfourier.py", line 33, in cryosparc2_compute.engine.gfourier.fft2_on_gpu_inplace File "/media/extradrive/cryosparc/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/fft.py", line 102, in __init__ capability = misc.get_compute_capability(misc.get_current_device()) File "/media/extradrive/cryosparc/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/misc.py", line 254, in get_current_device return drv.Device(cuda.cudaGetDevice()) File "/media/extradrive/cryosparc/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/cudart.py", line 767, in cudaGetDevice cudaCheckStatus(status) File "/media/extradrive/cryosparc/cryosparc2_worker/deps/anaconda/lib/python2.7/site-packages/skcuda/cudart.py", line 565, in cudaCheckStatus raise e cudaErrorInsufficientDriver

I checked the config.sh in the cryosparc2_worker folder and it contains this:

    export CRYOSPARC_LICENSE_ID="xxxxxxx"
    export CRYOSPARC_USE_GPU=true
    export CRYOSPARC_CUDA_PATH=/usr/local/cuda-10.1
    export CRYOSPARC_DEVELOP=false

And running nvcc --version gives this:

    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2019 NVIDIA Corporation
    Built on Wed_Apr_24_19:10:27_PDT_2019
    Cuda compilation tools, release 10.1, V10.1.168

And nvidia-smi gives the following version and displays my GPUs after that:
NVIDIA-SMI 384.130 Driver Version: 384.130

Could anyone please advise what is the problem?


#2

Hi @em_em,

It looks like the driver you have installed is incompatible with CUDA 10.1. As per NVIDIA’s documentation:

CUDA Toolkit Linux x86_64 Driver Version
CUDA 10.1 (10.1.105) >= 418.39

Please update your drivers and then restart cryoSPARC using cryosparcm restart.

- Suhail