summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-05-03 12:42:24 -0400
committerBen Gamari <ben@smart-cactus.org>2018-05-03 15:01:17 -0400
commit6462d90d01bcb07b8bff63689e8f2c8c20044952 (patch)
treee198502f5c132160ef888c24196625a910bb525e /rts/posix
parent721e82644b49da59e84c409562a63e7df75068bb (diff)
downloadhaskell-6462d90d01bcb07b8bff63689e8f2c8c20044952.tar.gz
rts: Throw better error if --numa is used without libnuma support
Test Plan: Validate, run program with `+RTS --numa` without libnuma support compiled in Reviewers: erikd, simonmar Subscribers: thomie, carter GHC Trac Issues: #14956 Differential Revision: https://phabricator.haskell.org/D4556
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSMem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index f603644375..9ecd53e9db 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -591,6 +591,15 @@ void osReleaseHeapMemory(void)
#endif
+bool osBuiltWithNumaSupport(void)
+{
+#if HAVE_LIBNUMA
+ return true;
+#else
+ return false;
+#endif
+}
+
bool osNumaAvailable(void)
{
#if HAVE_LIBNUMA