Skip to content

Instantly share code, notes, and snippets.

@levihuayuzhang
Created January 15, 2024 07:49
Show Gist options
  • Save levihuayuzhang/277596dbed2194b8fbfc6f87a186236f to your computer and use it in GitHub Desktop.
Save levihuayuzhang/277596dbed2194b8fbfc6f87a186236f to your computer and use it in GitHub Desktop.
add env var for nvidia HPC SDK
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
@levihuayuzhang
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment