From 757c308964735d74cbfa55548c24a96ea5a2ca56 Mon Sep 17 00:00:00 2001 From: Jan Thorbecke <janth@xs4all.nl> Date: Thu, 7 Mar 2019 17:59:06 +0100 Subject: [PATCH] general --- fdelmodc/threadAffinity.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdelmodc/threadAffinity.c b/fdelmodc/threadAffinity.c index bd9913c..0fcee39 100644 --- a/fdelmodc/threadAffinity.c +++ b/fdelmodc/threadAffinity.c @@ -10,6 +10,9 @@ #include <sched.h> #include <sys/types.h> #include <sys/sysctl.h> +#ifdef _OPENMP +#include <omp.h> +#endif #define CPU_SETSIZE 1024 #define SYSCTL_CORE_COUNT "machdep.cpu.core_count" -- GitLab