提交 23e0d11c 编写于 作者: L lichao18

Fix the omp_num_threads bug

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