Installation with Spack¶
Installation with Spack is easy and preferable for users who don't want to develop in microStamp or exaNBody. Only stable versions are added when you install exaNBody with Spack, meaning that it doesn't provide you access to the development branches. In addition, the main branch of exaNBody will never be directly accessible via this installation method.
Minimal requirements¶
Spack package manager¶
Below are instructions to first retrieve spack sources and install it on your system. First, clone the corresponding git repository and source the appropriate environment.
cd ${HOME}/dev
git clone --depth=2 --branch=v1.1.0 https://github.com/spack/spack.git
export SPACK_ROOT=${HOME}/dev/spack
source ${SPACK_ROOT}/share/spack/setup-env.sh
YAML library¶
All three platforms extensively use the YAML Library. To build YAML from sources, read the following instructions. Installations procedures using spack, apt-get or CMake are provided.
At this point, you should have YAML installed on your system. Please note that the installation procedure of YAML from sources using CMake also works on HPC clusters. In the following, remember to add the `-DCMAKE_PREFIX_PATH=${YAML_CPP_INSTALL_DIR} argument to your cmake command.
exaNBody x microStamp¶
First, clone the spack-repos GitHub repository on your computer and add this repository to spack. This repository contains onika and exaNBody recipes that allow for their installation.
Then, simply install exaNBody. To get access to the microStamp mini application, you need to require the contribs variant as follows:
The default version will be the latest stable release.