Browse Source

use max threads as cpu count on openmp capable runtime

tags/20180830
nihuini 8 years ago
parent
commit
f78e8fd8e4
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/cpu.cpp

+ 4
- 0
src/cpu.cpp View File

@@ -228,8 +228,12 @@ static int get_cpucount()
count = 1;

return count;
#else
#ifdef _OPENMP
return omp_get_max_threads();
#else
return 1;
#endif // _OPENMP
#endif
}



Loading…
Cancel
Save