You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have built a C++ exe application that uses Onnx runtime and DML (through NuGet), and it works perfectly. However, I recently converted the application to a DLL so that I can use the C++ code in a C# application. It runs correctly on the CPU, but if I attempt to use DML, I get the following error: D:\a_work\1\s\onnxruntime\core\providers\dml\dml_provider_factory.cc(471)\onnxruntime.dll!00007FFE41A13386: (caller: 00007FFE41A134E3) Exception(1) tid(503c) 887A0004 The specified device interface or feature level is not supported on this system.
The associated DLL code for performing the ML related tasks is identical to that of the exe. Again, I have tested the exe version on the same PC with the same drivers, and I don't get any errors.
Any ideas as to why I'm having issues with specifically just the DLL?
I have no idea why, but for some reason, the "DirectML.dll" wasn't being loaded despite being in the same directory as all the other dll files being loaded by Onnx. So I explicitly preloaded it, and that solved the problem.
Describe the issue
I have built a C++ exe application that uses Onnx runtime and DML (through NuGet), and it works perfectly. However, I recently converted the application to a DLL so that I can use the C++ code in a C# application. It runs correctly on the CPU, but if I attempt to use DML, I get the following error: D:\a_work\1\s\onnxruntime\core\providers\dml\dml_provider_factory.cc(471)\onnxruntime.dll!00007FFE41A13386: (caller: 00007FFE41A134E3) Exception(1) tid(503c) 887A0004 The specified device interface or feature level is not supported on this system.
The associated DLL code for performing the ML related tasks is identical to that of the exe. Again, I have tested the exe version on the same PC with the same drivers, and I don't get any errors.
Any ideas as to why I'm having issues with specifically just the DLL?
To reproduce
C++ code:
static bool attemptToUseDML(OrtApi const& ortApi, Ort::SessionOptions &sessionOptions) {
}
Urgency
No response
Platform
Windows
OS Version
10
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.17.3
ONNX Runtime API
C++
Architecture
X64
Execution Provider
DirectML
Execution Provider Library Version
1.13.1
The text was updated successfully, but these errors were encountered: