Skip to content

RTS option -N not exposed at Haskell level

I notice that the RTS option -Nk - for specifying the number of OS-level threads to run concurrently - is not exposed to Haskell. This means that for a parallel program, I need to effectively specify -Nk twice, once for the Haskell runtime, and once in a way that the program itself can see.

It would be very nice if GHC.Conc or some other such module made the value of this flag visible, so I didn't need to repeat myself.

Trac metadata
Trac field Value
Version 6.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information