Skip to content
Denis Alevi edited this page Mar 30, 2021 · 1 revision

CUDA installation

Brian2CUDA assumes availability of the following commands in PATH:

  1. nvidia-smi: This is installed by default with the NVIDIA drivers.
  2. deviceQuery: Should be located in your CUDA installation directory under <cuda_path>/extras/demo_suite/deviceQuery. If it isn't, please open an issue.
  3. nvcc: This is installed with the CUDA toolkit. If it isn't available in PATH, you need to set CUDA_PATH to point to your CUDA installation directory (see below).

Detection of CUDA installation

Brian2CUDA will try to detect your CUDA installation in the following order:

  1. Use preference prefs.brian2cuda.cuda_path (if set).
  2. Use CUDA_PATH environment variable (if set).
  3. Use location of nvcc to detect CUDA installation folder (needs nvcc binary in PATH)
  4. Use standard location /usr/local/cuda.

Custom CUDA installation

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.