Commit 6bb2791e by cjjia Committed by Tianqi Chen

fix warning (#1041)

parent 3d64cf92
...@@ -28,7 +28,7 @@ class ThreadGroup::Impl { ...@@ -28,7 +28,7 @@ class ThreadGroup::Impl {
} }
const char *val = getenv("TVM_BIND_THREADS"); const char *val = getenv("TVM_BIND_THREADS");
if (val == nullptr || atoi(val) == 1) { 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); SetAffinity(exclude_worker0);
} else { } else {
LOG(WARNING) LOG(WARNING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment