Created
January 15, 2024 07:49
-
-
Save levihuayuzhang/277596dbed2194b8fbfc6f87a186236f to your computer and use it in GitHub Desktop.
add env var for nvidia HPC SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /etc/profile.d/modules.sh # install `environment-modules` (https://askubuntu.com/questions/343692/module-load-command-does-not-work) | |
# https://docs.nvidia.com/hpc-sdk//hpc-sdk-install-guide/index.html#install-linux-end-usr-env-settings | |
NVARCH=`uname -s`_`uname -m`; export NVARCH | |
NVCOMPILERS=/opt/nvidia/hpc_sdk; export NVCOMPILERS | |
export MODULEPATH=$NVCOMPILERS/modulefiles:$MODULEPATH | |
module load nvhpc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.nvidia.com/hpc-sdk