-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: cuda_runtime.h: No such file or directory #131
Comments
@kerrmudgeon @tfogal @dholt @jaredcasper I am stuck on this installation process, can anyone help me out, Please! -thanks in advance |
And I am getting these errors in tf-serving installation:
|
Hi, you need to use CUDA compiler nvcc instead of g++ to compile your CUDA program. See, for example, here: https://devblogs.nvidia.com/easy-introduction-cuda-c-and-c/ |
Thanks! somehow I solved it after running this command. sudo apt-get install nvidia-cuda-toolkit As from my information everything was already installed, I don't know why nvcc was not present. But still I am getting the tensorflow-serving error. Can you help me out with this? I don't know everything is there still it says, after building and compiling while running the final command it returns all the undefined things. Which is weird and it's giving me a headache. undefined reference to `ncclCommInitAll' Please, help me ? |
It would look like -lnccl is missing from the link command. Still, I think this no longer applies to the current version. Please re-open if needed. |
You can also fix it using
|
Good solution there, mate! |
while running centerNet, I met similar problem. I use the docker |
But this still didn't solve for me |
Thank you sir, I'd like to add it works with cuda-11, just change to
|
I got the same error: cuda_runtime.h No such file or directory. gmake -C src build BUILDDIR=/home/mwp141/Tool/nccl-2.8.3-1/build
This did not solved by me. Do you know how to fix it? Thanks! |
There seems to be no nvcc in /usr/local/cuda-9.2/bin. Is CUDA installed in /usr/local/cuda-9.2 ? If not, did you set CUDA_HOME to /usr/local/cuda-9.2 by mistake? Otherwise you can set CUDA_HOME to a path where CUDA is installed. Also note, the latest version of NCCL will probably not compile with an old CUDA 9.2. I'd advise to upgrade to CUDA 10.2 at least, and preferably 11.4. |
export CUDA_HOME=/usr/local/cuda-11.4 |
If you are using Anaconda, the following line works like a charm: conda install -c nvidia cuda-toolkit |
this is the solution for the cuda_runtime.h error |
I have Installed and make NCCL successfully then added all the environment paths too, after that I am trying to run this test program:
and it keeps giving me this error:
This is when I do: locate cuda_runtime.h it returns me this:
/usr/local/cuda-9.0/targets/x86_64-linux/include/cuda_runtime.h
This is my LD_LIBRARY_PATH variable:
LD_LIBRARY_PATH=:./build/lib:/home/afzal/nickel/lib:/usr/local/cuda/lib64:/usr/local/cuda-9.0/targets/x86_64-linux/include/
This is my PATH variable:
PATH=/home/afzal/.virtualenvs/tensorflow_py36/bin:/home/afzal/bin:/home/afzal/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/afzal/.fzf/bin
Any help? As I am trying to install tf-serving but that too returns me error of nccl libraries, so I thought I will first solve the issues of nccl and that will eventually solve the problems of tf-serving.
-Thanks.
The text was updated successfully, but these errors were encountered: