Why do you have to use both a compiler flag and a run-time flag to get multicore-support in Haskell?

前端 未结 3 2066
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 04:46

The Haskell wiki shows that you need to both set a compilation flag and a run-time flag to get multi-core support. Why isn\'t using the library enough to get the correct behavio

3条回答
  •  耶瑟儿~
    2021-02-07 05:00

    Why can't the run-time executable detect it was compiled with -threaded and use all cores on the system unless otherwise specified?

    That's an interesting feature request!

    You could ask for it on the GHC feature tracker: http://hackage.haskell.org/trac/ghc/wiki/ReportABug

提交回复
热议问题