mit-han-lab/inter-operator-scheduler

fatal error: NvInfer.h: No such file or directory

caiyu6666 opened this issue · 2 comments

When rebuild IOS runtime and TRT runtime, I run "make -j4" but it gets the error fatal error: NvInfer.h: No such file or directory. There is no such file named "NvInfer.h". How to solve it?

oooo, I have solved it.
Add include_directories(/you/path/TensorRT-7.0.0.11/include) and link_directories(/you/path/TensorRT-7.0.0.11/lib) to CMakeLists.txt and it will be ok.

Cool. You can also try adding the TensorRT path to config.cmake file (at line 8) and rebuild (cmake & make).