summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-05-28 15:42:04 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2019-05-28 06:42:04 -0700
commit01ece824e1ddda561acb5f611dc55a1f906e99a3 (patch)
tree822ce84d0f37ba10c076d3b4b1d9266b896df5bb /etc
parent2a51e07fdecf317be5d7ad8cfbda54a0f39f583b (diff)
downloadspack-01ece824e1ddda561acb5f611dc55a1f906e99a3.tar.gz
spack-01ece824e1ddda561acb5f611dc55a1f906e99a3.tar.bz2
spack-01ece824e1ddda561acb5f611dc55a1f906e99a3.tar.xz
spack-01ece824e1ddda561acb5f611dc55a1f906e99a3.zip
Cap the maximum number of build jobs (#11373)
* config:build_jobs now controls the number of parallel jobs to spawn during builds, but cannot ever exceed the number of cores on the machine. * The default is set to 16 or the number of available cores, whatever is lowest. * Updated docs to reflect the changes done to limit parallel builds
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/config.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml
index 6e8c1905e8..37db99f4c9 100644
--- a/etc/spack/defaults/config.yaml
+++ b/etc/spack/defaults/config.yaml
@@ -99,10 +99,12 @@ config:
locks: true
- # The default number of jobs to use when running `make` in parallel.
- # If set to 4, for example, `spack install` will run `make -j4`.
- # If not set, all available cores are used by default.
- # build_jobs: 4
+ # The maximum number of jobs to use when running `make` in parallel,
+ # always limited by the number of cores available. For instance:
+ # - If set to 16 on a 4 cores machine `spack install` will run `make -j4`
+ # - If set to 16 on a 18 cores machine `spack install` will run `make -j16`
+ # If not set, Spack will use all available cores up to 16.
+ # build_jobs: 16
# If set to true, Spack will use ccache to cache C compiles.