Support
Numba (Install - Python3)
Install on Pop!_OS
Section titled “Install on Pop!_OS”Prerequisits
Section titled “Prerequisits”These instructions assume that the CUDA toolkit is already set up and working on your installation of Pop_OS.
Install The latest Numba library
Section titled “Install The latest Numba library”To install Numba, please run this command:
sudo apt install python3-numbaEnvironmental Variable setup
Section titled “Environmental Variable setup”To make changes on the system level, add the below in /etc/environment . To make changes on user level (assuming you have the default bash shell), add in ~/.bashrc. Note the system level approach is not dependendent on your choice of shell.
# path to CUDA driver shared library file.export NUMBAPRO_CUDA_DRIVER=/usr/lib/x86_64-linux-gnu/libcuda.so# path to CUDA libNVVM shared library fileexport NUMBAPRO_NVVM=/usr/lib/cuda/nvvm/lib64/libnvvm.so# path to CUDA libNVVM libdevice directory which contains .bc files.export NUMBAPRO_LIBDEVICE=/usr/lib/cuda/nvvm/libdevice# path to CUDA librariesexport NUMBAPRO_CUDALIB=/usr/lib/cuda/lib64Finally, restart your computer to complete setup.
Test installation
Section titled “Test installation”To test your new Numba installation, from the commandline type:
numba -sDetails of the installation should be returned.
Further information
Section titled “Further information”For further details on Numba, please see: http://numba.pydata.org/