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

Set specific Cuda stream ID in Cpp implimentation code. #1565

Open
phamthanhdat270198 opened this issue Aug 6, 2024 · 2 comments
Open

Set specific Cuda stream ID in Cpp implimentation code. #1565

phamthanhdat270198 opened this issue Aug 6, 2024 · 2 comments

Comments

@phamthanhdat270198
Copy link

Env

  • Agx Orin 64GB.
  • Ubuntu20.04
  • Cuda version 11.4
  • TensorRT version 8.5.2

Question

Hi,
I want to set specific cudastream ID on Cpp code yolo like --streams=0 or --streams=1, ... in trtexec
Many thanks!!!!!

@wang-xinyu
Copy link
Owner

You need to adapt the inference code, create multiple streams and pass to infer() function.

@phamthanhdat270198
Copy link
Author

When I create multiple streams It just decrease a little bit infer time. So Does it working in parallel. give me an example about multi streams and multi contexts. Many thanks!!!
Here is my impliment multi streams
Uploading image.png…

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

No branches or pull requests

2 participants