Blind out affinity module if OpenMP is not used. Remove obsolete pthread switch.

This commit is contained in:
Jan Eitzinger
2019-03-14 10:03:53 +01:00
parent 13f1b03e9b
commit c6bc088fa1
4 changed files with 9 additions and 7 deletions

View File

@@ -26,6 +26,7 @@
*/
#ifdef __linux__
#ifdef _OPENMP
#include <stdlib.h>
#include <stdio.h>
#include <sched.h>
@@ -84,4 +85,5 @@ affinity_pinProcess(int processorId)
CPU_SET(processorId, &cpuset);
sched_setaffinity(0, sizeof(cpu_set_t), &cpuset);
}
#endif
#endif /*__linux__*/
#endif /*_OPENMP*/