MlasGetMaximumThreadCount: plus 1 to the NumThreads from ORT thread pool (#1646)

This commit is contained in:
Changming Sun 2019-08-19 14:15:04 -07:00 committed by GitHub
parent bdc694314c
commit 413730365f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -517,7 +517,7 @@ MlasGetMaximumThreadCount(
MLAS_UNREFERENCED_PARAMETER(ThreadPool);
#else
if (ThreadPool != nullptr) {
return ThreadPool->NumThreads();
return ThreadPool->NumThreads() + 1;
}
#endif