Skip to content

"Update CMakeLists.txt to use system-installed TensorRT and CUDA #90

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phongpham663
Copy link

  • Removed manual TensorRT_DIR path (/home/cyrus/work/libs/TensorRT-10.0.0.6/)
  • Use find_library and find_path to locate TensorRT libraries and headers from system (/usr/lib/x86_64-linux-gnu/, /usr/include/x86_64-linux-gnu/)"

- Removed manual TensorRT_DIR path (/home/cyrus/work/libs/TensorRT-10.0.0.6/)
- Use find_library and find_path to locate TensorRT libraries and headers from system (/usr/lib/x86_64-linux-gnu/, /usr/include/x86_64-linux-gnu/)"
@cyrusbehr
Copy link
Owner

Have you taken a look at this file: https://github.com/cyrusbehr/tensorrt-cpp-api/blob/main/cmake/FindTensorRT.cmake
It contains much of the same code.
Perhaps it makes more sense to keep the current method of setting TensorRT_DIR in the root CMakeLists.txt, but we can set the default value to be the standard system location for this library, instead of my specific filepath.

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

Successfully merging this pull request may close these issues.

2 participants