[GHC] #15741: Accept GHCRTS=-N1 when not compiled with -threaded

#15741: Accept GHCRTS=-N1 when not compiled with -threaded -------------------------------------+------------------------------------- Reporter: lspitzner | Owner: (none) Type: feature | Status: new request | Priority: normal | Milestone: Component: Runtime | Version: 8.6.1 System | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- current behaviour: {{{
ghc Main.hs -o test ./test +RTS -N1 test: the flag -N1 requires the program to be built with -threaded [blah blah] }}}
requested: {{{
ghc Main.hs -o test ./test +RTS -N1 hello world }}}
Motivation: In certain environments, threaded is bad idea due to resource constraints even when multiple capabilities are available, because resident memory can increase with parallel execution. Slapping GHCRTS=-N1 onto those environments would be nice, but breaks for things not compiled with -threaded. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15741 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15741: Accept GHCRTS=-N1 when not compiled with -threaded -------------------------------------+------------------------------------- Reporter: lspitzner | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.6.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): Wiki Page: | -------------------------------------+------------------------------------- Comment (by lspitzner): There also is the more general feature request "support passing rts opts in a ignore-if-unsupported" mode. E.g. with a system-wide "GHCRTS=-M1G" even running cabal install flat-out fails because cabal does not compile `Setup.hs`s with -rtsopts. Might be considered a bug in cabal in that case, but some escape hatch might make sense regardless. Maybe a second env var, like "GHCRTSSOFT" or something? Thoughts? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15741#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC