-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] v1.14.x TensorRT EP is broken on TensorRT sdk 8.4.1.5; uses datatype that does not exist #15118
Comments
more diagnostics...
If I go to
That directory seems to be on the 8.4.1.5 codebase.
That is unexpected. The build directory was completely deleted. |
There's no onnx-tensorrt directory under https://github.com/microsoft/onnxruntime/tree/main/cmake/external I believe we have been removing things from |
Yes, there are some dirs in cmake/external. I remember seeing a warning during some git work "can't remove xxx dirs because things are in them". This usually isn't a big problem since directories with things that are never used or referenced are just bits on an SSD.
Issue 1The documentation at https://onnxruntime.ai/docs/build/eps.html#prerequisites-1 is now outdated and incorrect. Issue 2I suspect something hardcoded in v1.14.1 the specific download url and SHA of the onnx-tensorrt backend. Line 28 in c57cf37
and also at onnxruntime/cgmanifests/generated/cgmanifest.json Lines 312 to 319 in 32a4eeb
Then something ( onnxruntime/cmake/onnxruntime_providers.cmake Lines 673 to 677 in 32a4eeb
The archive commit above in Contrast that to the needed onnx-tensorrt backend commit for 8.4.15 This makes me think that ORT has significantly changed dependency behavior.
|
A workaround may be to use the |
Hi, ORT TRT 1.14 needs TRT 8.5, that's why you encountered build error. As Scott mentioned, onnx-tensorrt directory was removed from As you might notice you can use |
Thanks for confirming my research above. I recommend quick reviewing other parts of doc that might be outdated due to this changed dependency management (perhaps one of the 20 dirs list4ed above no longer under cmake/external/) |
Hi @diablodale |
I looked at the updates. I see unclear changes. I've reviewed with comments at #16465 |
I can see the updated live at https://onnxruntime.ai/docs/build/eps.html |
Describe the issue
Sometime after ORT v1.13.1 the TensorRT EP added code that uses
nvinfer1::DataType::kUINT8
That datatype
kUINT8
andkFP8
do not exist in TensorRT sdk 8.4.1.5. Therefore the build breaks in many ways in many places.Onnxruntime build docs write that TensorRT sdk 8.4.1.5 is fully suppported. This is now false.
ORT code changes or forcing newer TensorRT sdk are the choices likely on the table.
Urgency
No response
Target platform
Windows (likely all platforms that support TensorRT)
Build script
.\build.bat --update --build --skip_tests ^
--cmake_generator "Visual Studio 16 2019" --config Release --build_shared_lib --parallel --use_dml --use_cuda --cuda_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4" --cuda_version 11.4 --cudnn_home "C:\repos-nobackup\cudnn-windows-x86_64-8.4.1.50_cuda11.6-archive" --use_tensorrt --tensorrt_home "C:\repos-nobackup\TensorRT-8.4.1.5" --cmake_extra_defines CMAKE_INSTALL_PREFIX=C:/repos-nobackup/onnxruntime/.install/Release onnxruntime_USE_AVX=ON
Error / output
too many to list. here are a few...
Visual Studio Version
VS2019 v16.11.25
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: