Replies: 1 comment
-
No. They need be in different processes. Our CUDA EP has a threadlocal cache: https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/core/providers/cuda/cuda_execution_provider.h#L113 . Each PerThreadContext maps to one single GPU. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`
optionsOfSession1.addCuda(0);
optionsOfSession1.addCuda(1);
optionsOfSession2.addCuda(3);
optionsOfSession2.addCuda(4);
`
Could the code works fine?
Beta Was this translation helpful? Give feedback.
All reactions