Skip to content

Instantly share code, notes, and snippets.

@DuaneNielsen
Last active December 2, 2020 03:38
Show Gist options
  • Save DuaneNielsen/e2aba1c3421c96e1d21c61cc62b9797e to your computer and use it in GitHub Desktop.
Save DuaneNielsen/e2aba1c3421c96e1d21c61cc62b9797e to your computer and use it in GitHub Desktop.
Add specific CUDA to python venv
# 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
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