This repository is a spack repo for DARMA/vt and its required dependencies.
Make sure spack is installed.
spack repo add /path/to/spack-package/
It's important that spack uses the right version of mpi or it may try to build mpi from source. Similarly, it may be useful for it to be configured to use the system's cmake.
If the system uses modules, be sure the relevant modules are loaded. Then run the following commands (substituting openmpi for mpich, etc. as appropriate):
#Have spack locate the system's CMake and OpenMPI
spack external find --not-buildable cmake openmpi
#Configure spack to never try to build any type of MPI package for itself
spack config add packages:mpi:buildable:false
This avoids spack trying to build openmpi and cmake from source. To check what a particular install command will install, use:
spack spec <package_name>
Now, darma-vt is accessible to your spack instance.
spack install darma-vt
By default it will install version 1.0. You can specify darma-vt@develop
to install the latest development version.
To run the tests for darma-vt, run:
spack install --test=root darma-vt
If darma-vt is already installed, you will have to uninstall it prior to running the above command.