提交 adcfff64 编写于 作者: 李滨

Merge branch 'master' into 'master'

Fix the omp_num_threads bug

See merge request !926
...@@ -223,7 +223,7 @@ MaceStatus CPURuntime::SetOpenMPThreadsAndAffinityPolicy( ...@@ -223,7 +223,7 @@ MaceStatus CPURuntime::SetOpenMPThreadsAndAffinityPolicy(
} }
++cores_to_use; ++cores_to_use;
} }
num_threads_hint = cores_to_use; num_threads_hint = std::min(num_threads_hint, cores_to_use);
} else { } else {
cores_to_use = num_threads_hint; cores_to_use = num_threads_hint;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册