The CUDA and OS versions are selected as follows:
- CUDA: The lastest version that has image flavour
develincluding cuDNN available.
R images
- R: Provide NVBLAS-enabled
R_andRscript_.- Enabled at runtime and only if
nvidia-smiand at least one GPU are present.
- Enabled at runtime and only if
Versions
CUDA_VERSION
Miscellaneous
CUDA_IMAGE: The CUDA image it is derived from.CUDA_VISIBLE_DEVICES: If unset (default), CUDA will use all available CUDA-capable devices.
👉 User-settable at runtime.
R images
- VS Code
- Extensions > R > Rterm: Linux:
/usr/local/bin/R
- Extensions > R > Rterm: Linux:
The R images use OpenBLAS by default.
To have R and Rscript use NVBLAS instead,
-
copy the NVBLAS-enabled executables to
~/.local/binfor file in $(which {R,Rscript}); do cp "$file"_ "~/.local/bin/$(basename "$file")"; done -
set Extensions > R > Rterm > Linux:
/home/USER/.local/bin/Rin VS Code settings
👉 SubstituteUSERwith your user name.
and restart the R terminal.
ℹ️ The xgboost package benefits greatly from NVBLAS, if it is installed correctly.