NVIDIA CUDA Compiler(NVCC)

CUDA Toolkit Container: The CUDA (Compute Unified Device Architecture) Toolkit provides a development environment for creating high performance GPU-accelerated applications. The toolkit includes GPU-accelerated libraries, debugging and optimization tools, a C/C++ compiler and a runtime library to deploy your application. All NGC Container images are based on the CUDA platform layer

Environment variable setup:
CUDA version 10.2
To add this path to the PATH variable:
Add the following lines in your .bashrc file
$vi ~/.bashrc
$ export PATH=/usr/local/cuda-10.2/bin:$PATH
In addition, when using the runfile installation method, the LD_LIBRARY_PATH variable needs to contain /usr/local/cuda-10.2/lib64 on a 64-bit system.
To change the environment variables for 64-bit operating systems:
$ export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64
Run the command source .bashrc
CUDA version 11.0
To add this path to the PATH variable:
Add the following lines in your .bashrc file
$vi ~/.bashrc
$ export PATH=/usr/local/cuda-11.0/bin:$PATH
In addition, when using the runfile installation method, the LD_LIBRARY_PATH variable needs to contain /usr/local/cuda-11.0/lib64 on a 64-bit system.
To change the environment variables for 64-bit operating systems:
$ export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64
Run the command source .bashrc

 

CUDA version 11.4
To add this path to the PATH variable:
Add the following lines in your .bashrc file
$vi ~/.bashrc
$ export PATH=/usr/local/cuda-11.4/bin:$PATH
In addition, when using the runfile installation method, the LD_LIBRARY_PATH variable needs to contain /usr/local/cuda-11.4/lib64 on a 64-bit system.
To change the environment variables for 64-bit operating systems:
$ export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64
Run the command source .bashrc