Cuda: library nvvm not found Cuda: library nvvm not found python python

Cuda: library nvvm not found


What worked for me under exactly the same scenario was to include the following in the .bashrc (I'm currently using cuda-9.0). Don't be thrown off by the NUMBAPRO in the variable name - it works for numba (at least for me):

export NUMBAPRO_NVVM=/usr/local/cuda-9.0/nvvm/lib64/libnvvm.soexport NUMBAPRO_LIBDEVICE=/usr/local/cuda-9.0/nvvm/libdevice/

Update: It worked for me too. As I'm using Cuda 10.1, I have included the following lines instead of yours:

export NUMBAPRO_NVVM=/usr/local/cuda-10.1/nvvm/lib64/libnvvm.soexport NUMBAPRO_LIBDEVICE=/usr/local/cuda-10.1/nvvm/libdevice/


One Solution is:

import osos.environ['NUMBAPRO_NVVM']      = r'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\nvvm\bin\nvvm64_31_0.dll'os.environ['NUMBAPRO_LIBDEVICE'] = r'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\nvvm\libdevice'

Or if you are using PyCharm GO TO RUN > Edit Configuration

export NUMBAPRO_NVVM=/usr/local/cuda-{cuda version}/nvvm/lib64/libnvvm.soexport NUMBAPRO_LIBDEVICE=/usr/local/cuda-{cuda version}/nvvm/libdevice/

enter image description here


On Ubuntu 18.04 if you install all libraries and packages from the official repository, you need to add two information on your .bashrc to allow numba to find your libraries and device:

...export NUMBAPRO_LIBDEVICE=/usr/lib/cuda/nvvm/libdeviceexport NUMBAPRO_NVVM=/usr/lib/x86_64-linux-gnu/...

NUMBAPRO_LIBDEVICE information was extracted from the package:

$ dpkg -L nvidia-cuda-toolkit

and NUMBAPRO_NVVM from:

$ dpkg -L libnvvm3

That's it.