Forum

nvcc 11.5 to 12.1, ...
 
Notifications
Clear all

nvcc 11.5 to 12.1, how?

1 Posty
1 Users
0 Reactions
91 Widok
0
Topic starter

how to change nvcc version from 11.5 to 12.1? 

  1. I have cuda 12.1 installed
  2. "nvcc --version" still returns 11.5 version
  3. "which nvcc" command points to /usr/bin/nvcc
  4. python -c "import torch; print(torch.version.cuda)" returns 12.1
1 Answer
0
Topic starter

simple (one of many) solution

  1. install cuda-toolkit-12-1 (using apt install cuda-toolkit-12-1 command)
  2. sudo rm /usr/bin/nvcc
  3. sudo ln -s /usr/local/cuda-12.1/bin/nvcc /usr/bin/nvcc

try now 

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: