Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.88 KB

INSTALL.md

File metadata and controls

56 lines (44 loc) · 1.88 KB

Manual installation

Installation using Spack is recommended, see README.md. This file details how to build and install BookLeaf directly using CMake.

Dependencies

The only hard dependency is yaml-cpp, which is used to read input files.

If you want to run BookLeaf using MPI (the typical case), then you will need to enable Typhon support by first installing that library and then passing the ENABLE_TYPHON switch to CMake (as shown below).

ParMETIS and Silo are optional dependencies which accelerate mesh partitioning and provide visualisation files respectively.

LLNL Caliper is supported for collecting performance measurements, build with ENABLE_CALIPER to enable this.

zlib is used for reading and writing compressed dumps, and is required for running tests. CMake will try and locate zlib by default, but will not stop the build if it cannot find it.

Building

BookLeaf uses CMake, and tries to be idiomatic in doing so. The typical CMake process looks something like the following (inside the top-level BookLeaf directory):

mkdir build
cd build
export CXX=<compiler, e.g. g++>
cmake \
    -DCMAKE_INSTALL_PREFIX=$HOME \
    -DCMAKE_BUILD_TYPE="Release" \
    -DENABLE_TYPHON=ON \
    -DENABLE_PARMETIS=ON \
    -DENABLE_SILO=ON \
    -DENABLE_CALIPER=ON \
    ..
make
make test

make test will run both unit tests for individual kernels, and (TODO validation tests for the entire application), but requires building with zlib (which is the default).