0

I'm trying to get nvcc working, but it seems that it's not even installed on my system. Although I have installed cuda-10.2 when installing pytorch with conda, but there's no mention of nvcc at all anywhere and which nvcc returns nothing. I searched the related threads and noticed that nvcc should be in path: /usr/local/cuda-10.2/bin/nvcc, but interestingly, there's not any bin/ folder within cuda-10.2/, let alone nvcc. If it was, I'd have add them to the bashsrc.

Does anyone know the solution to this? nvcc is supposed to be used by a library that I'm using, but since it cannot fetch it, it just stops working.

  • try this https://askubuntu.com/questions/885610/nvcc-version-command-says-nvcc-is-not-installed – imposter Jun 24 '21 at 19:51
  • Already tried, not working for me @ShubhangKakkar; those solution assumes there's bin folder within cuda folder, but I even do not have this bin folder which I can point to... – inverted_index Jun 24 '21 at 20:01
  • why dont you try reinstalling @inverted_index – imposter Jun 24 '21 at 20:05
  • you mean reinstalling cuda toolkit? I feel like it's been installed with conda pytorch. Re-installing it (at least in this way) doesn't cause nvcc to appear within cuda folder. Do you know a better way of installing cuda? @ShubhangKakkar – inverted_index Jun 24 '21 at 20:08
  • No sorry unfortunately I don't know – imposter Jun 24 '21 at 21:31
  • Take a look at https://askubuntu.com/questions/1348006/nvcc-is-not-found-while-cuda-is-installed The .run file allows you to skip the Nvidia driver install, and to override the location for bin and lib files (select ...cuda10.2/bin, etc.). – ubfan1 Jun 24 '21 at 21:56
  • Conda tends to do things differently from the regular cuda install - perhaps this is relevant Nvcc missing when installing cudatoolkit? – steeldriver Jun 24 '21 at 23:19
  • @steeldriver thank you for providing the link. Seems that the last answer is sort of useful, but unfortunately cudatoolkit-dev doesn't have 10.2 ... – inverted_index Jun 26 '21 at 05:42

0 Answers0