현재 GPU 정보를 알고자 하는 경우, nvidia-smi이 외에도 nvaccelinfo를 사용하는 것도 좋다.
===
To install CUDA 12.3 (Ubutu, x86_64 22.04 deb:network)
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
sudo apt-get install -y cuda-drivers
sudo apt-get install -y nvidia-kernel-open-545
sudo apt-get install -y cuda-drivers-545
===
To install the HPC SDK (Ubuntu x86_64 apt) : Download
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y
sudo apt-get install -y nvhpc-23-9
===
To make the HPC SDK available:
In csh, use these commands:
setenv NVARCH `uname -s`_`uname -m`
setenv NVCOMPILERS /opt/nvidia/hpc_sdk
setenv MANPATH "$MANPATH":$NVCOMPILERS/$NVARCH/23.9/compilers/man
set path = ($NVCOMPILERS/$NVARCH/23.9/compilers/bin $path)
In bash, sh, or ksh, use these commands:
NVARCH=`uname -s`_`uname -m`; export NVARCH
NVCOMPILERS=/opt/nvidia/hpc_sdk; export NVCOMPILERS
MANPATH=$MANPATH:$NVCOMPILERS/$NVARCH/23.9/compilers/man; export MANPATH
PATH=$NVCOMPILERS/$NVARCH/23.9/compilers/bin:$PATH; export PATH
Once the compilers are available, you can make the OpenMPI commands and man pages accessible using these commands.
set path = ($NVCOMPILERS/$NVARCH/23.9/comm_libs/mpi/bin $path)
setenv MANPATH "$MANPATH":$NVCOMPILERS/$NVARCH/23.9/comm_libs/mpi/man
And the equivalent in bash, sh, and ksh:
export PATH=$NVCOMPILERS/$NVARCH/23.9/comm_libs/mpi/bin:$PATH
export MANPATH=$MANPATH:$NVCOMPILERS/$NVARCH/23.9/comm_libs/mpi/man
Alternatively, the HPC SDK also provides environment modules to configure the shell environment. In csh, use these commands:
setenv MODULEPATH $NVCOMPILERS/modulefiles:"$MODULEPATH"
module load nvhpc
And the equivalent in bash, sh, and ksh:
export MODULEPATH=$NVCOMPILERS/modulefiles:$MODULEPATH
module load nvhpc
===
To install Redhat environment module at Ubuntu
sudo apt-get install environment-modules
To use module command,
module avail
module list
module load nvhpc/23.9
module unload nvhpc/23.9