-
Notifications
You must be signed in to change notification settings - Fork 12
CUDA installation
Denis Alevi edited this page Mar 30, 2021
·
1 revision
Brian2CUDA assumes availability of the following commands in PATH
:
-
nvidia-smi
: This is installed by default with the NVIDIA drivers. -
deviceQuery
: Should be located in your CUDA installation directory under<cuda_path>/extras/demo_suite/deviceQuery
. If it isn't, please open an issue. -
nvcc
: This is installed with the CUDA toolkit. If it isn't available inPATH
, you need to setCUDA_PATH
to point to your CUDA installation directory (see below).
Brian2CUDA will try to detect your CUDA installation in the following order:
- Use preference
prefs.brian2cuda.cuda_path
(if set). - Use
CUDA_PATH
environment variable (if set). - Use location of
nvcc
to detect CUDA installation folder (needsnvcc
binary inPATH
) - Use standard location
/usr/local/cuda
.
For custom CUDA installations, set the prefs.brian2cuda.cuda_path
preference
or the CUDA_PATH
environment variable (e.g. /usr/local/cuda-10
).
NOTE: Depending on your system configuration, you might have to set
LD_LIBRARY_PATH
to CUDA_PATH/lconfigurationib64
.