Skip to content

Instantly share code, notes, and snippets.

@planetceres
Created January 16, 2019 17:53
Show Gist options
  • Select an option

  • Save planetceres/da980ffeab58f4bb44fb97c6b95615d1 to your computer and use it in GitHub Desktop.

Select an option

Save planetceres/da980ffeab58f4bb44fb97c6b95615d1 to your computer and use it in GitHub Desktop.
CUDA Activation Script - 9.0
#!/bin/sh
ORIGINAL_PATH=$PATH
export PATH=/usr/local/cuda-9.0/bin:$PATH
ORIGINAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/usr/local/cuda-9.0/extras/CUPTI/lib64:/lib/nccl/cuda-9:$LD_LIBRARY_PATH
@planetceres
Copy link
Copy Markdown
Author

chmod +x ~/ .cudaactivate_9.0

Activate: source ~/ .cudaactivate_9.0
Deactivate source ~/ .cudadeactivate

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