Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
254
Widok
0
03/06/2024 7:58 pm
Topic starter
how to change nvcc version from 11.5 to 12.1?
- I have cuda 12.1 installed
- "nvcc --version" still returns 11.5 version
- "which nvcc" command points to /usr/bin/nvcc
- python -c "import torch; print(torch.version.cuda)" returns 12.1
1 Answer
0
03/06/2024 7:59 pm
Topic starter
simple (one of many) solution
- install cuda-toolkit-12-1 (using apt install cuda-toolkit-12-1 command)
- sudo rm /usr/bin/nvcc
- sudo ln -s /usr/local/cuda-12.1/bin/nvcc /usr/bin/nvcc
try now