[GHC] #12741: --numa doesn't work even if libnuma is available

GHC ghc-devs at haskell.org
Sat Oct 22 19:30:12 UTC 2016


#12741: --numa doesn't work even if libnuma is available
-------------------------------------+-------------------------------------
        Reporter:  darshan           |                Owner:  darshan
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2620
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"1050e46b5b1640a475fa2fa67616cda8d31308e2/ghc"
 1050e46b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1050e46b5b1640a475fa2fa67616cda8d31308e2"
 rts: configure.ac should populate HAVE_LIBNUMA instead of USE_LIBNUMA

 Code in rts/ which deals with numa checks for `#if HAVE_LIBNUMA`,
 however this macro is not populated during `./configure`.
 https://phabricator.haskell.org/D2329 changed this code last and we
 instead set `USE_LIBNUMA` which fails to setup numa correctly.

 Test Plan:
 From main directory in ghc,

   ./configure && make clean && make boot && make
   cd nofib/parallel/queens
   ../../../inplace/bin/ghc-stage2 Main.hs -rtsopts -threaded
   ./Main 15 +RTS -N24 -s -A64m --numa

 This fails before this patch with

   Main: --numa: OS reports NUMA is not available

 After the fix, it works as expected.

 Run the validation script,

   ./validate

 (It fails with an error in `compiler/utils/Util.hs` saying
 `GHC.Stack.CallStack` not found, once I remove this 1 line from this
 file , the script works)

 Reviewers: hvr, austin, bgamari, erikd, simonmar

 Reviewed By: erikd, simonmar

 Subscribers: mpickering, thomie, erikd, niteria

 Differential Revision: https://phabricator.haskell.org/D2620

 GHC Trac Issues: #12741
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12741#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list