Score:0

Nvcc is not found while cuda is installed

gn flag

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.

Shubhang Kakkar avatar
us flag
try this https://askubuntu.com/questions/885610/nvcc-version-command-says-nvcc-is-not-installed
inverted_index avatar
gn flag
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...
Shubhang Kakkar avatar
us flag
why dont you try reinstalling @inverted_index
inverted_index avatar
gn flag
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
Shubhang Kakkar avatar
us flag
No sorry unfortunately I don't know
cc flag
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.).
hr flag
Conda tends to do things differently from the regular cuda install - perhaps this is relevant [Nvcc missing when installing cudatoolkit?](https://stackoverflow.com/questions/56470424/nvcc-missing-when-installing-cudatoolkit)
inverted_index avatar
gn flag
@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 ...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.