Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
#include <fstream>
#include <string>
-#if defined(__linux__) || defined(__gnu_linux__)
+#if defined(__linux__) || defined(__gnu_linux__) || defined(__APPLE__)
#include <pthread.h>
#include <sched.h>
#include <unistd.h>
}
}
+#elif defined(__APPLE__)
+
#else
#error Unsupported platform
SetThreadGroupAffinity(GetCurrentThread(), &affinity, nullptr);
-#else
+#elif defined(__linux__) || defined(__gnu_linux__)
cpu_set_t cpuset;
pthread_t thread = pthread_self();