#1741: Threaded RTS must use processor affinity and processor information
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: task | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Runtime System | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Multiple
Os: Multiple |
----------------------------+-----------------------------------------------
Comment (by simonmar):
You can do this via the `defaultsHook`; just define a C function
{{{
void defaultsHook (void) { ... your code here ... }
}}}
and it'll get run during the RTS startup, just before the command-line
flags are parsed. The idea is that you can modify `RtsFlags` to set
various options (see [[GhcFile(includes/RtsFlags.h)]]). The field
corresponding to `+RTS -N` is `RtsFlags.ParFlags.nNodes`.
I think it would be great if you (or someone else) could write some code
to automatically set `+RTS -N` using `defaultsHook`, and we can pick it up
at a later time.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1741#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs