-
Notifications
You must be signed in to change notification settings - Fork 546
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: driver_types.h: No such file or directory #93
Comments
Yes, I really think we should have some CI for this repo. @benbarsdell, could you check with your folks to see if we can have some GPU machine for CI? Thanks. |
@bpinaya An interesting issue. In general, Cmake with native cuda support should be able to find the cuda install and it worked for me an many others. However, you are not alone in experiencing of that issue. Reading about it more, I found the following paragraph in 3.12 doc. "... So it looks that the ability of the cmake to find or not depends on a platform and on a driver. Thank you for pointing this out. |
I can confirm that
is necessary on Jetson Xavier. Thanks @bpinaya. |
I meet the same problem on jetson nano platform. And before that, you need to install protobuf firstly. It is fine for me. |
To prevent issue onnx#93, we need to provide CUDA include directory.
I met the same problem building onnx-tensorrt for mxnet |
Also works for cuda-10.1& Tesla-T4 GPU |
Hi there, this issue is related to #81 so I'll also tag @goldgeisser .
After I fixed the symlink I was still having that
fatal error: driver_types.h: No such file or directory
, the complete log is:To rule out installation problems I might have commited I decided to reproduce it in a container.
I'm pulling this container (from
nvidia-docker
at https://ngc.nvidia.com)And running with:
so the versions are the following:
cmake --version
:gcc --version
:nvcc --version
:dpkg -l | grep -i tensorrt
Also the output of
locate driver_types.h
is empty but the symlink for cuda seems to be there. Since the output ofll /usr/local/
is:Only after passing the cuda include dir variable to cmake I was able to solve that:
What I found weird is that even if the symlink variable seems to be pointing to the correct location I couldn't get it to build without passing that variable. Maybe a note in the Readme would suffice.
Or could it be some cmake shenanigans? I'll close the issue after I get some feedback since it's easily fixable, just wanted it to be here if anyone encounters something similar so they can have some insight.
Also, maybe some CI would be nice, I volunteer to set it up in either travis, circle or maybe even jenkins if Nvida (@benbarsdell) can provide a gpu enabled container. @yinghai I could also set up code formatting and some linting so it'll be easier to contribute, maybe an image from ngc?. I'm planning on submitting some PRs I did for some layers.
The text was updated successfully, but these errors were encountered: