Skip to content

Fix TRT EP's cuda graph feature - #17355

Merged
chilo-ms merged 1 commit into
mainfrom
chi/trt_cuda_graph_fix_2
Aug 31, 2023
Merged

Fix TRT EP's cuda graph feature#17355
chilo-ms merged 1 commit into
mainfrom
chi/trt_cuda_graph_fix_2

Conversation

@chilo-ms

Copy link
Copy Markdown
Contributor

When users run inference with cuda graph enable with multithreading, only the main thread creating the inference session will successfully initialize cuda graph instance, for other threads executing the inference run directly, they will hit segfault due to not calling allocation/initialization for cuda graph instance.
This PR fixes this issue.

Comment thread onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h
@chilo-ms
chilo-ms merged commit 30a450d into main Aug 31, 2023
@chilo-ms
chilo-ms deleted the chi/trt_cuda_graph_fix_2 branch August 31, 2023 20:32
@natke natke added the triage:approved Approved for cherrypicks for release label Sep 1, 2023
Lafi7e pushed a commit that referenced this pull request Sep 1, 2023
When users run inference with cuda graph enable with multithreading,
only the main thread creating the inference session will successfully
initialize cuda graph instance, for other threads executing the
inference run directly, they will hit segfault due to not calling
allocation/initialization for cuda graph instance.
This PR fixes this issue.
snnn pushed a commit that referenced this pull request Sep 7, 2023
Cherry-pick 2nd round for 1.16.0 release.
PR List:

#17201
#17270
#17311
#17315
#17320
#17326
#17355
#17227
#17380
#17386
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
When users run inference with cuda graph enable with multithreading,
only the main thread creating the inference session will successfully
initialize cuda graph instance, for other threads executing the
inference run directly, they will hit segfault due to not calling
allocation/initialization for cuda graph instance.
This PR fixes this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage:approved Approved for cherrypicks for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants