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
First i use commond '--use dnnl' to build a onnxruntime.dll enable oneDNN support.
When i use this code to register a dnnl EP to ORT: int threadNum = 4; bool enable_cpu_mem_arena = true; OrtDnnlProviderOptions dnnl_option = { enable_cpu_mem_arena, static_cast<void*>(&threadNum)}; session_options.AppendExecutionProvider_Dnnl(dnnl_option); session_options.SetIntraOpNumThreads(4); session_options.EnableProfiling(L"det_Profiling"); session = Ort::Session(env, model_path.c_str(), session_options);
From det_Profiling.json i find threr always is "provider" : "CPUExecutionProvider",
When i use GetAvailableProviders()
I got "DnnlExecutionProvider" and "CPUExecutionProvider"
How can i use DnnlExecutionProvider as my EP?
Why my Profiling file always is "provider" : "CPUExecutionProvider"?
Is there something miss to config with ORT session? Thanks.
To reproduce
First i use commond '--use dnnl' to build a onnxruntime.dll enable oneDNN support.
When i use this code to register a dnnl EP to ORT: int threadNum = 4; bool enable_cpu_mem_arena = true; OrtDnnlProviderOptions dnnl_option = { enable_cpu_mem_arena, static_cast<void*>(&threadNum)}; session_options.AppendExecutionProvider_Dnnl(dnnl_option); session_options.SetIntraOpNumThreads(4); session_options.EnableProfiling(L"det_Profiling"); session = Ort::Session(env, model_path.c_str(), session_options);
From det_Profiling.json i find threr always is "provider" : "CPUExecutionProvider",
When i use GetAvailableProviders()
I got "DnnlExecutionProvider" and "CPUExecutionProvider"
How can i use DnnlExecutionProvider as my EP?
Why my Profiling file always is "provider" : "CPUExecutionProvider"?
Is there something miss to config with ORT session? Thanks.
Urgency
No response
Platform
Windows
OS Version
windows 11
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
18.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
oneDNN
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
Describe the issue
First i use commond '--use dnnl' to build a onnxruntime.dll enable oneDNN support.
When i use this code to register a dnnl EP to ORT:
int threadNum = 4;
bool enable_cpu_mem_arena = true;
OrtDnnlProviderOptions dnnl_option = { enable_cpu_mem_arena, static_cast<void*>(&threadNum)};
session_options.AppendExecutionProvider_Dnnl(dnnl_option);
session_options.SetIntraOpNumThreads(4);
session_options.EnableProfiling(L"det_Profiling");
session = Ort::Session(env, model_path.c_str(), session_options);
From det_Profiling.json i find threr always is "provider" : "CPUExecutionProvider",
When i use
GetAvailableProviders()
I got "DnnlExecutionProvider" and "CPUExecutionProvider"
How can i use DnnlExecutionProvider as my EP?
Why my Profiling file always is "provider" : "CPUExecutionProvider"?
Is there something miss to config with ORT session? Thanks.
To reproduce
First i use commond '--use dnnl' to build a onnxruntime.dll enable oneDNN support.
When i use this code to register a dnnl EP to ORT:
int threadNum = 4;
bool enable_cpu_mem_arena = true;
OrtDnnlProviderOptions dnnl_option = { enable_cpu_mem_arena, static_cast<void*>(&threadNum)};
session_options.AppendExecutionProvider_Dnnl(dnnl_option);
session_options.SetIntraOpNumThreads(4);
session_options.EnableProfiling(L"det_Profiling");
session = Ort::Session(env, model_path.c_str(), session_options);
From det_Profiling.json i find threr always is "provider" : "CPUExecutionProvider",
When i use
GetAvailableProviders()
I got "DnnlExecutionProvider" and "CPUExecutionProvider"
How can i use DnnlExecutionProvider as my EP?
Why my Profiling file always is "provider" : "CPUExecutionProvider"?
Is there something miss to config with ORT session? Thanks.
Urgency
No response
Platform
Windows
OS Version
windows 11
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
18.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
oneDNN
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: