summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2020-12-17 08:23:55 -0800
committerGitHub <noreply@github.com>2020-12-17 17:23:55 +0100
commitb7d9e269ef55179ca04a543d150c09ff56048f4a (patch)
tree001035c34156da706fbcbfb244b54b2b45b349d0
parent860a945de62b513064b7a5724b29b97aa2e7fd1b (diff)
downloadspack-b7d9e269ef55179ca04a543d150c09ff56048f4a.tar.gz
spack-b7d9e269ef55179ca04a543d150c09ff56048f4a.tar.bz2
spack-b7d9e269ef55179ca04a543d150c09ff56048f4a.tar.xz
spack-b7d9e269ef55179ca04a543d150c09ff56048f4a.zip
docs: add single node concurrent build example (#20416)
-rw-r--r--lib/spack/docs/packaging_guide.rst15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index 7992256856..d436e4b88c 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -1864,14 +1864,21 @@ of ``mpich`` using the following command:
$ srun -N 2 -n 8 spack install -j 4 mpich@3.3.2
-This will create eight concurrent four-job installation on two different
+This will create eight concurrent, four-job installs on two different
nodes.
+Alternatively, you could run the same installs on one node by entering
+the following at the command line of a bash shell:
+
+.. code-block:: console
+
+ $ for i in {1..12}; do nohup spack install -j 4 mpich@3.3.2 >> mpich_install.txt 2>&1 &; done
+
.. note::
- The effective parallelism will be based on the maximum number of
- packages that can be installed at the same time, which will limited
- by the number of packages with no (remaining) uninstalled dependencies.
+ The effective parallelism is based on the maximum number of packages
+ that can be installed at the same time, which is limited by the
+ number of packages with no (remaining) uninstalled dependencies.
.. _dependencies: