Forum

nvcc 11.5 to 12.1, ...
 
Powiadomienia
Wyczyść wszystko

nvcc 11.5 to 12.1, how?

1 Wpisy
1 Użytkownicy
0 Reactions
400 Widoki
0
Rozpoczynający temat

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 odpowiedź
0
Rozpoczynający temat

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 

Twoja odpowiedź

Nazwa autora

E-mail autora

Twoje zapytanie *

 
Podgląd 0 rewizje Zapisano
Udostępnij: