Skip to content
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 #33

Open
DineshRajanT opened this issue Jun 19, 2020 · 3 comments
Open

fatal error: cuda_runtime.h #33

DineshRajanT opened this issue Jun 19, 2020 · 3 comments

Comments

@DineshRajanT
Copy link

DineshRajanT commented Jun 19, 2020

In file included from simpleOnnx.cpp:28:0:
cudaWrapper.h:30:10: fatal error: cuda_runtime.h: No such file or directory
#include <cuda_runtime.h>
^~~~~~~~~~~~~~~~
compilation terminated.

I have set the paths as:
export PATH=/usr/local/cuda-10.0/bin:/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

@harrism
Copy link
Member

harrism commented Jun 24, 2020

I think @habbasian should take a look, but you probably need to modify this line:

CUDA_INSTALL_DIR=/usr/local/cuda

To point to /usr/local/cuda-10.0

PATH and LD_LIBRARY_PATH do not effect include file searches.

@harrism
Copy link
Member

harrism commented Jun 24, 2020

Most users have a symlink from /usr/local/cuda to the most recent install of CUDA o their system. Hence the makefile should work in most cases, but if your installation doesn't have a symlink it would not work.

@harrism
Copy link
Member

harrism commented Jul 20, 2020

@DineshRajanT was this helpful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants