diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2018-05-03 12:42:24 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-05-03 15:01:17 -0400 |
commit | 6462d90d01bcb07b8bff63689e8f2c8c20044952 (patch) | |
tree | e198502f5c132160ef888c24196625a910bb525e /rts/win32 | |
parent | 721e82644b49da59e84c409562a63e7df75068bb (diff) | |
download | haskell-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/win32')
-rw-r--r-- | rts/win32/OSMem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/win32/OSMem.c b/rts/win32/OSMem.c index d05151ce61..c62ee3b7a4 100644 --- a/rts/win32/OSMem.c +++ b/rts/win32/OSMem.c @@ -499,6 +499,11 @@ void osReleaseHeapMemory (void) #endif +bool osBuiltWithNumaSupport(void) +{ + return true; +} + bool osNumaAvailable(void) { return osNumaNodes() > 1; |