cyrusbehr / tensorrt-cpp-api

TensorRT C++ API Tutorial
MIT License
543 stars 66 forks source link

[feature] add support for and test with CUDA 12 Ubuntu 22.04 #40

Closed cyrusbehr closed 3 months ago

cyrusbehr commented 6 months ago

Latest OpenCV as well

huynhkhoa44 commented 6 months ago

I am using your github and having some problems. I have fully installed the required libraries, and of course tensorRT using the commands "pip install tensorrt, pip install tensorrt_lean and pip install tensorrt_dispatch". My version is ubuntu 22.04 and cuda 12.2. However, when I go to cmake .. I get an error "Could NOT find TensorRT (missing: TensorRT_LIBRARY TensorRT_INCLUDE_DIR)". How do I fix this error? Thank you very much

cyrusbehr commented 6 months ago

@huynhkhoa44 did you see the TODO in the CMakeLists.txt file? You probably forgot to specify the path to TensorRT. Please be sure to read the project readme thoroughly.

cyrusbehr commented 3 months ago

Tested and confirmed working on Ubuntu 22.04 with TensorRT 8.6, CUDA 12.0, cuDNN 8.9, and gcc 11.4