Skip to content

Instantly share code, notes, and snippets.

@scivision
Last active November 17, 2023 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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/2023/
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