a note on external packages
authorDenis Davydov <davydden@gmail.com>
Wed, 28 Sep 2016 09:43:30 +0000 (11:43 +0200)
committerDenis Davydov <davydden@gmail.com>
Wed, 28 Sep 2016 09:43:30 +0000 (11:43 +0200)
deal.II-in-Spack.md

index 8331ba20e8f85658f1dfa2e75c5f331badac8e1d..512346c83831b94fd0adf8253bfa06fd13df698a 100644 (file)
@@ -262,4 +262,20 @@ Spack supports installation of [licensed software](http://software.llnl.gov/spac
 2. manually download Intel MKL archive `l_mkl_11.3.2.181.tgz`
 3. `cd` to the folder with archive and run `spack install mkl@11.3.2.181`.
 
-One can then run `spack install dealii ^mkl@11.3.2.181`.
\ No newline at end of file
+One can then run `spack install dealii ^mkl@11.3.2.181`.
+
+### External packages and concretization preferences
+
+Spack can be configured to use externally-installed packages rather than building its own packages. In most cases this is desirable for `MPI`, which is already installed on computational clusters. To configure external packages you need to edit `packages.yaml`. For `openmpi` this could be
+```
+packages:
+  openmpi:
+    version: [1.8.8]
+    paths:
+      openmpi@1.8.8%gcc@6.2.0: /opt/openmpi-1.8.8
+    buildable: False
+```
+In order to make sure that `1.8.8` version of `openmpi` and not the most recent one (i.e. `2.0.2`) is used to build packages, we specified conretization preferences with `version: [1.8.8]`.
+
+
+For more elaborated discussion, see [Spack documentation](http://spack.readthedocs.io/en/latest/configuration.html).
\ No newline at end of file

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.