Skip to content
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

[TRT EP] Fix build error for building oss onnx-tensorrt parser #17468

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

chilo-ms
Copy link
Contributor

@chilo-ms chilo-ms commented Sep 8, 2023

If building ORT TRT with --use_tensorrt_oss_parse (meaning ORT wil include oss onnx-tensorrt parser and build it from source) ,the cmake CUDA_INCLUDE_DIR variable is needed.

if not, you will encounter following build error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/build/Release/_deps/onnx_tensorrt-src/CUDA_INCLUDE_DIR

Note: Not quite sure why in the past when CI still tested with oss parser won't hit this issue. probably the CUDA_INCLUDE_DIR was defined somewhere back then.

@chilo-ms chilo-ms requested a review from jywu-msft September 8, 2023 18:53
@jywu-msft jywu-msft merged commit b827ab0 into main Sep 9, 2023
@jywu-msft jywu-msft deleted the chi/fix_build branch September 9, 2023 03:34
chilo-ms added a commit that referenced this pull request Nov 4, 2023
#17468
The above PR didn't fully fix the issue for some environments.
This PR fixes this.
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
…soft#17468)

If building ORT TRT with `--use_tensorrt_oss_parse` (meaning ORT wil
include [oss onnx-tensorrt
parser](https://github.com/onnx/onnx-tensorrt/blob/main/CMakeLists.txt#L82)
and build it from source) ,the cmake CUDA_INCLUDE_DIR variable is
needed.

if not, you will encounter following [ build
error](https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=1133937&view=logs&j=7536d2cd-87d4-54fe-4891-bfbbf2741d83&t=39e3f98f-7fe5-578c-20bd-5ae5a4590bda):

CMake Error: The following variables are used in this project, but they
are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
    /build/Release/_deps/onnx_tensorrt-src/CUDA_INCLUDE_DIR

Note: Not quite sure why in the past when CI still tested with oss
parser won't hit this issue. probably the CUDA_INCLUDE_DIR was defined
somewhere back then.
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
…oft#18274)

microsoft#17468
The above PR didn't fully fix the issue for some environments.
This PR fixes this.
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