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

[Question] trtexec with multi streams #1590

Closed
tp-nan opened this issue Nov 4, 2021 · 4 comments
Closed

[Question] trtexec with multi streams #1590

tp-nan opened this issue Nov 4, 2021 · 4 comments
Labels
question Further information is requested Samples triaged Issue has been triaged by maintainers

Comments

@tp-nan
Copy link

tp-nan commented Nov 4, 2021

Hi,
I built an engine with dynamic batching input, and num_optimization_profiles == 1,

but trtexec support streams=2. How it happend, as multi-contexts can not use the same profile at the same time? Did I miss something?

@tp-nan tp-nan changed the title trtexec with multi streams [Question] trtexec with multi streams Nov 4, 2021
@ttyio
Copy link
Collaborator

ttyio commented Dec 14, 2021

Hello @ShiyangZhang , yes you are right, when dynamic shape is enabled, each profile can only assign to single context.
I just check trtexec:

--streams=N Instantiate N engines to use concurrently

So we create 2 engines in your case. thanks

@ttyio ttyio added question Further information is requested Samples triaged Issue has been triaged by maintainers labels Dec 14, 2021
@tp-nan
Copy link
Author

tp-nan commented Dec 14, 2021

thx

@tp-nan tp-nan closed this as completed Dec 14, 2021
@yuekaizhang
Copy link

yuekaizhang commented May 30, 2022

Hi, @ttyio I was wondering if trtexec support --streams for dynamic shape or not? I encounter the same issue #1341 with trt8.4 EA.

@nvpohanh
Copy link
Collaborator

@yuekaizhang trtexec does not support multiple optimization profiles yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Samples triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

4 participants