summaryrefslogtreecommitdiffstats
path: root/Affinity.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-08 16:25:22 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-09-24 19:43:27 +0200
commit005c4d1f2321b45f484fab0127db315927c2207b (patch)
treea08abadbce80364d86f58d21d30ca401f394a6f2 /Affinity.h
parentf4bb50294a31c0d46dbcd742c4002f4fbb20d2a8 (diff)
Make --enable-hwloc and --enable-linux-affinity mutual exclusive
They can not be supported both at the same time. Fail configure step instead of silently only use hwloc.
Diffstat (limited to 'Affinity.h')
-rw-r--r--Affinity.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Affinity.h b/Affinity.h
index 20d00470..ced161b4 100644
--- a/Affinity.h
+++ b/Affinity.h
@@ -11,6 +11,10 @@ in the source distribution for its full text.
#include "Process.h"
#include "ProcessList.h"
+#if defined(HAVE_LIBHWLOC) && defined(HAVE_LINUX_AFFINITY)
+#error hwlock and linux affinity are mutual exclusive.
+#endif
+
typedef struct Affinity_ {
ProcessList* pl;
int size;

© 2014-2024 Faster IT GmbH | imprint | privacy policy