The 'jobs' setting should be initialised with $NUM_CORES #982

Closed
23Skidoo opened this Issue Jul 28, 2012 · 0 comments

Projects

None yet

2 participants

@23Skidoo
Haskell member

It'd be nice if the jobs config file setting was automatically initialised with the number of cores, so that the users weren't required to edit the config file by hand. The right place to do that seems to be D.C.Config.initialConfig. It'd be also nice to allow specifying the -j command-line option without argument.

How to find the number of cores at runtime: http://stackoverflow.com/questions/8041813/how-to-find-the-number-of-cores-at-runtime-in-haskell/8769052

@tibbe tibbe pushed a commit that closed this issue Aug 11, 2012
@23Skidoo 23Skidoo Initialise the 'jobs' config file setting with the current number of …
…CPU cores.

Fixes #982. Additionally, running 'install -j' without the numerical argument
will have the same effect at runtime.

Side effect: 'install -jNUM' doesn't work when there's a space between -j and
NUM.
4624e88
@tibbe tibbe closed this in 4624e88 Aug 11, 2012
@tibbe tibbe added a commit that referenced this issue Aug 16, 2012
@23Skidoo 23Skidoo Initialise the 'jobs' config file setting with the current number of …
…CPU cores.

Fixes #982. Additionally, running 'install -j' without the numerical argument
will have the same effect at runtime.

Side effect: 'install -jNUM' doesn't work when there's a space between -j and
NUM.
c247ec7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment