Skip to content
Snippets Groups Projects
Commit 6bb2791e authored by cjjia's avatar cjjia Committed by Tianqi Chen
Browse files

fix warning (#1041)

parent 3d64cf92
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ class ThreadGroup::Impl {
}
const char *val = getenv("TVM_BIND_THREADS");
if (val == nullptr || atoi(val) == 1) {
if (num_workers_ <= std::thread::hardware_concurrency()) {
if (static_cast<size_t>(num_workers_) <= std::thread::hardware_concurrency()) {
SetAffinity(exclude_worker0);
} else {
LOG(WARNING)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment