Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static inline int ff_numCores() {
- int n=-1;
- #if defined(__linux__)
- FILE *f;
- f = popen("cat /proc/cpuinfo |grep processor | wc -l", "r");
- if (fscanf(f, "%d", &n) == EOF) { pclose(f); return n;}
- pclose(f);
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement