[GHC] #9341: Evaluate default CPUs setting for validate

#9341: Evaluate default CPUs setting for validate -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.2 Keywords: | Differential Revisions: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: -------------------------------------+------------------------------------- This is a fork off #9315:comment 16. `./validate` runs `-j2` (i.e. CPUS=1). I guess most developers these days have a stronger system that would allow for more cores to be used. This ticket should discuss if this default should changed to something higher, or possibly something dynamic. On Linux, there is the command `nproc`, part of coreutils, for that – is that also provided by our default windows environment? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9341 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9341: Evaluate default CPUs setting for validate -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Operating System: Unknown/Multiple Differential Revisions: | Type of failure: None/Unknown Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Comment (by nomeata): Simon M. writes:
BTW, on the question of -j setting, the usual way is to say CPUS=8 ./validate if you have an 8-core machine.
That’s what I learned, but not immediately. I agree with jrp that the default could be better. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9341#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9341: Evaluate default CPUs setting for validate
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.1
Component: Build | Version: 7.8.2
System | Keywords:
Resolution: fixed | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: Phab:D146 |
-------------------------------------+-------------------------------------
Changes (by thomie):
* status: new => closed
* differential: => Phab:D146
* resolution: => fixed
* milestone: => 7.10.1
Comment:
This has since been implemented. `./validate` now sets `THREADS=CPUS+1`,
and `CPUS` is determined dynamically.
{{{
commit f328890021253c426b7450b6c5a1061d25f6219b
Author: Sergei Trofimovich
participants (1)
-
GHC