This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
nihui
/
ncnn
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
46
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
use max threads as cpu count on openmp capable runtime
tags/20180830
nihuini
8 years ago
parent
2790f3c640
commit
f78e8fd8e4
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
}
Write
Preview
Loading…
Cancel
Save