Comments (4)
Documentation states DirectML doesn't support parallel execution mode:
The DirectML execution provider does not support the use of memory pattern optimizations or parallel execution in onnxruntime. When supplying session options during InferenceSession creation, these options must be disabled or an error will be returned.
If creating the onnxruntime InferenceSession object directly, you must set the appropriate fields on the onnxruntime::SessionOptions struct. Specifically, execution_mode must be set to ExecutionMode::ORT_SEQUENTIAL, and enable_mem_pattern must be false.
Additionally, as the DirectML execution provider does not support parallel execution, it does not support multi-threaded calls to Run on the same inference session. That is, if an inference session using the DirectML execution provider, only one thread may call Run at a time. Multiple threads are permitted to call Run simultaneously if they operate on different inference session objects.
from onnxruntime.
Interesting... the code was tested on multiple windows pcs and we have never experienced errors.
As stated above I am not able to reproduce the issue myself. As soon as I hear a feedback I will close the issue if the problem has been solved.
Thanks!
from onnxruntime.
Interesting... the code was tested on multiple windows pcs and we have never experienced errors.
It's possible to get lucky, but that setting is unsupported.
Can you get more info using the graphics and DML debug layer? It's probably already installed you have Visual Studio installed, but otherwise: https://learn.microsoft.com/en-us/windows/ai/directml/dml-debug-layer. Then:
- Start / Run / dxcpl.exe
- Add your process .exe path to the list.
- Then Force debug messages on.
- You should see additional output in the Visual Studio Output window, a different debugger of your choice, or via DebugView.
from onnxruntime.
I have noted that all the hardware involved even if it supports DirectX12 has a maximum feature level of 11_1. Does DirectML execution require feature level 12_0? I cannot find any reference to this in the documentation.
from onnxruntime.
Related Issues (20)
- [Web] `executionProviders` chain for `webnn` fallback does not work on init error HOT 28
- pip install failure for onnxruntime-gpu==1.9.0 HOT 5
- Get error while using Dml EP HOT 2
- ONNX I/O Binding HOT 5
- [Build] Support CUDA 12 onnxruntime-gpu pypi package HOT 10
- [Build] --external_graph_transformer_path doesn't. --test_external_transformer_example removed from build.py? HOT 3
- [Feature Request] Support NPU now?
- [Build] Cuda 12.5 HOT 3
- [Build] Missing code from builds v1.17+ HOT 2
- [Build] Failed build on Linux HOT 2
- [Training] The gradient builder has not been registered for node with op type MatMulNBits HOT 10
- NNAPI doesn't work on google-edgetpu [Mobile] HOT 1
- [Documentation Request] Required cuDNN version for OnnxRuntime 1.18 HOT 3
- [Build] MoE related unit tests fail for older architectures such as Pascal when building dev debug HOT 4
- [Documentation] Dead Links HOT 1
- How can I debug a reproducible error? HOT 6
- [Build] Same questions as #20777 HOT 1
- Result of Pad evaluated by onnxruntime is inconsistent with onnx ReferenceEvaluator and onnx doctumentation
- use GCC with "-fsanitize=address" options, detected memory leaks HOT 5
- export an onnx graph for a single decoder layer for LLAMA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxruntime.