未验证 提交 d8478c11 编写于 作者: E Evgeny Proydakov 提交者: GitHub

Fixed compile warning in src/cpu.cpp for ios 32/64 bit compilation. [-Wunused-variable] (#2452)

上级 7d30220f
...@@ -730,9 +730,10 @@ int set_cpu_thread_affinity(const CpuSet& thread_affinity_mask) ...@@ -730,9 +730,10 @@ int set_cpu_thread_affinity(const CpuSet& thread_affinity_mask)
return 0; return 0;
#elif __APPLE__ #elif __APPLE__
int num_threads = thread_affinity_mask.num_enabled();
#ifdef _OPENMP #ifdef _OPENMP
int num_threads = thread_affinity_mask.num_enabled();
// set affinity for each thread // set affinity for each thread
set_omp_num_threads(num_threads); set_omp_num_threads(num_threads);
std::vector<int> ssarets(num_threads, 0); std::vector<int> ssarets(num_threads, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册