Skip to content

Instantly share code, notes, and snippets.

@scivision
Last active June 17, 2024 17:49
Show Gist options
  • Save scivision/5339df6d9f0a1e2635f697cb6e3f3cbd to your computer and use it in GitHub Desktop.
Save scivision/5339df6d9f0a1e2635f697cb6e3f3cbd to your computer and use it in GitHub Desktop.
NVIDIA HPC SDK source script (incl. CUDA)
# when wanting to use NVIDIA HPC SDK, type in Terminal
# source ~/nvidia-hpc.sh
nvroot=/opt/nvidia/hpc_sdk/Linux_x86_64/24.5/
cudaroot=${nvroot}/cuda/
export PATH=$PATH:${cudaroot}/bin/:${nvroot}/compilers/bin/
export CC=nvc CXX=nvc++ FC=nvfortran
export CUDACXX=nvcc
export MPI_ROOT=${nvroot}/comm_libs/openmpi4/
nvcc --version
nvfortran --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment