Last active
December 2, 2020 03:38
-
-
Save DuaneNielsen/e2aba1c3421c96e1d21c61cc62b9797e to your computer and use it in GitHub Desktop.
Add specific CUDA to python venv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open the <env_name>/bin/activate | |
# add the below lines to the bottom | |
# | |
# CUDA 11.0 | |
LD_LIBRARY_PATH="/usr/local/cuda-11.0/lib64" | |
export LD_LIBRARY_PATH | |
PATH="/usr/local/cuda-11.0/bin:$PATH" | |
export PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to check torch cuda version | |
import torch | |
torch.version.cuda | |
to check version of cuda installed | |
nvcc --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment