The detected CUDA version (12.2) mismatches the version that was used to compile PyTorch(11.7) #5071
Unanswered
kathy060415
asked this question in
Q&A
Replies: 1 comment
-
There could be instances where it detects a system-wide CUDA installation that is different from the one in your conda environment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on an external GPU using WinSCP. I have downloaded torch using 'conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia' through putty.exe.
I have checked the cuda version using torch.version.cuda and it shows up as 11.7.
However, when I try to run !python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' on Jupyter Notebook, I get the error saying that 'The detected CUDA version (12.2) mismatches the version that was used to compile PyTorch (11.7). Please make sure to use the same CUDA versions.'.
This is what is running in my .sh file on WinSCP to run jupyter notebook on external GPU.
My conda environment has the following cuda packages
The external GPU I am working with comes with the following shared applications:
I am wondering when pytorch goes around it detects another CUDA? I have been erasing and making several conda environments to solve this problem, but I am coming up with the same error.
Can someone please suggest a solution to this? Would there be a way to specify a cuda version when running a command? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions