mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-28 03:20:58 +00:00
MlasGetMaximumThreadCount: plus 1 to the NumThreads from ORT thread pool (#1646)
This commit is contained in:
parent
bdc694314c
commit
413730365f
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ MlasGetMaximumThreadCount(
|
|||
MLAS_UNREFERENCED_PARAMETER(ThreadPool);
|
||||
#else
|
||||
if (ThreadPool != nullptr) {
|
||||
return ThreadPool->NumThreads();
|
||||
return ThreadPool->NumThreads() + 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue