Skip to content

Instantly share code, notes, and snippets.

@jeasinema
Created February 25, 2021 08:18
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 jeasinema/3ee0b45e12c40f1878335336c0bb68d8 to your computer and use it in GitHub Desktop.
Save jeasinema/3ee0b45e12c40f1878335336c0bb68d8 to your computer and use it in GitHub Desktop.
CUDA utils
export CUDA_HOME=$HOME/tools/cuda-9.0 # change to your path
export CUDA_TOOLKIT_ROOT_DIR=$CUDA_HOME
export LD_LIBRARY_PATH="$CUDA_HOME/extras/CUPTI/lib64:$LD_LIBRARY_PATH"
export LIBRARY_PATH=$CUDA_HOME/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
export CFLAGS="-I$CUDA_HOME/include $CFLAGS"
export PATH="$CUDA_HOME/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment