[Build] ORT, DML, OpenVINO Python wheel build - "OpenVINOExecutionProvider doesn't support memcpy" #23824
Labels
build
build issues; typically submitted using template
ep:DML
issues related to the DirectML execution provider
ep:OpenVINO
issues related to OpenVINO execution provider
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
I built ONNX RT 1.19.0 w/ DirectML and OpenVINO 2024.3 Release together using this command:
.\build.bat --config RelWithDebInfo --parallel --use_openvino --use_dml --use_winml --enable_wcos --build_shared_lib --skip_tests --build_wheel
The build completes successfully, I take the wheel and pip install it within my virtual env, then run a python script I use to run inference sessions for some ONNX models. Running DirectML (GPU) looks like it is working perfectly fine. OpenVINO EP is also registered, it shows where I print "get_available_providers()".
print("Printing Available ONNX RT providers (EPs):") print(onnxruntime.get_available_providers())
But I am getting an error when trying to run OpenVINO (OV) EP.
"Execution type OpenVINOExecutionProvider doesn't support memcpy"
In the traceback it is failing when I setup the Inference Session like so:
openvino_options = [{'device_type': 'GPU', 'cache_dir': 'cachedir'}, {}] exec_provider =['OpenVINOExecutionProvider', 'DmlExecutionProvider'] session0 = onnxruntime.InferenceSession("model_0.onnx", sess_options=options, providers=exec_provider, provider_options=openvino_options)
I also tried building a new ONNX RT version with new OV EP - I tried ONNX RT 1.20.0 (release), DML 1.15.2 , and OV 2024.5 and the same issue occurs - both DML and OV EP show as registered, DML works but OV EP gets a memcpy error.
Any ideas where the issue lies?
Also FYI I am using Python 3.11.9
These are the libraries I have installed that are related to ONNX RT or OV. The wheel I installed came up as the "onnxruntime-openvino" one
Urgency
I would like to test with different EPs
Target platform
Windows
Build script
.\build.bat --config RelWithDebInfo --parallel --use_openvino --use_dml --use_winml --enable_wcos --build_shared_lib --skip_tests --build_wheel
Error / output
"Execution type OpenVINOExecutionProvider doesn't support memcpy"
Visual Studio Version
Visual Studio 2022
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: