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

Multithreaded GPU inference. #18209

Closed
zirid opened this issue Nov 1, 2023 · 2 comments
Closed

Multithreaded GPU inference. #18209

zirid opened this issue Nov 1, 2023 · 2 comments
Labels
ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform stale issues that have not been addressed in a while; categorized by a bot

Comments

@zirid
Copy link

zirid commented Nov 1, 2023

Describe the issue

I have an image with a size of 16384*50000.

I divide the image into 4 and put it in std::vectorcv::Mat .

for each block I ran a [20002000] sliding window , resize it to 640640 Roi's and execute a object detection session (yolov5.onnx).

when the 4 block are ran in a serial mode the execution time is : 3535 [msec]
when the 4 block are ran in a parallel mode ( std::async) the execution time is : 2419 [msec]

Is there is a better method to launch 4 sessions in parallel ?

To reproduce

hardware used in the test : RTX 2070 - intel core i7-8700 (12 core)

Urgency

No response

Platform

Windows

OS Version

10

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

Microsoft.ML.OnnxRuntime.Gpu 1.15.1

ONNX Runtime API

C++

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

CUDA 11.7

Model File

No response

Is this a quantized model?

No

@github-actions github-actions bot added ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform labels Nov 1, 2023
Copy link
Contributor

github-actions bot commented Dec 1, 2023

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Dec 1, 2023
Copy link
Contributor

github-actions bot commented Jan 1, 2024

This issue has been automatically closed due to inactivity. Please reactivate if further support is needed.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

1 participant