CUDA driver library cannot be found.

1 view
Skip to first unread message

Chris Uchytil

unread,
Jul 12, 2017, 7:02:46 PM7/12/17
to Numba Public Discussion - Public
I recently updated my drivers with nvidia-current. Because of this, when executing code I get this error

Traceback (most recent call last):
  File "imageExpand.py", line 322, in <module>
    print cuda.gpus
  File "/home/uchytilc/anaconda2/lib/python2.7/site-packages/numba/cuda/cudadrv/devices.py", line 43, in __str__
    return ', '.join([str(d) for d in self.lst])
  File "/home/uchytilc/anaconda2/lib/python2.7/site-packages/numba/cuda/cudadrv/devices.py", line 26, in __getattr__
    numdev = driver.get_device_count()
  File "/home/uchytilc/anaconda2/lib/python2.7/site-packages/numba/cuda/cudadrv/driver.py", line 334, in get_device_count
    self.cuDeviceGetCount(byref(count))
  File "/home/uchytilc/anaconda2/lib/python2.7/site-packages/numba/cuda/cudadrv/driver.py", line 272, in __getattr__
    self.initialization_error)
numba.cuda.cudadrv.error.CudaSupportError: Error at driver init: 

CUDA driver library cannot be found.
If you are sure that a CUDA driver is installed,
try setting environment variable NUMBAPRO_CUDA_DRIVER
with the file path of the CUDA driver shared library.

Is the CUDA driver shared library path something like this /usr/local/cuda-8.0/lib64/......?

stuart

unread,
Jul 19, 2017, 9:57:41 AM7/19/17
to Numba Public Discussion - Public
Perhaps try running `numba -s` and looking in the __CUDA Information__ section to find out what is/isn't working.

The NUMBAPRO_CUDA_DRIVER is usually a path to `libcuda.so`.

Hope this helps,

-- 
stuart
Reply all
Reply to author
Forward
0 new messages