Add an option in OpenVINOProviderOptions to support the queue-based overload for creating ClContext #19697
Labels
ep:OpenVINO
issues related to OpenVINO execution provider
stale
issues that have not been addressed in a while; categorized by a bot
Currently, the OpenVINO EP only provides a way to share an OpenCL context (for IO Buffering) through a context pointer, given in its provider options (either the struct or string-map based API). It is used in its backend in the following manner:
onnxruntime/onnxruntime/core/providers/openvino/backends/basic_backend.cc
Line 61 in 913bdc7
This is problematic when wanting to use a specific OpenCL queue instead, as there is no way to do so through the current API, even though OpenVINO itself provides an overload for it (see second constructor):
The API should be adapted to allow specifying an OpenCL queue, instead of only a context, calling the second CLContext constructor in that case.
Urgency
Fixed it on my end, but would like to upstream.
Platform
Windows
OS Version
11
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.17.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
OpenVINO EP GPU
Execution Provider Library Version
5.1?
The text was updated successfully, but these errors were encountered: