Building LBANN on OS X

Warning

If using OSX 10.14 or newer, be sure that /usr/include has been restored. In version 10.14, this may be accomplished by installing /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg. If this package is not available, it’s possible command line tools have not been installed; do so by executing xcode-select --install.

Setup Homebrew

Note

Setting up Homebrew only needs to be done once per system,.

Download and install Homebrew. Setup base development packages. Note that at the moment we use brew to install LLVM, Open-MPI, ScaLAPACK, and CMake.

brew install llvm
brew install open-mpi
brew install cmake
brew install hwloc
brew install doxygen
brew install graphviz

brew install modules source $(brew –prefix)/opt/modules/init/zsh

Put the brew-based clang in your path:

export PATH=/usr/local/opt/llvm/bin:$PATH;

Install lmod so that we can use modules to put Spack-built packages into your path:

brew install lmod
brew install luarocks

Update your shell configuration files to enable use of modules via lmod:

source $(brew --prefix lmod)/init/$(basename $SHELL)

Building & Installing LBANN

From this point, follow the instructions for building LBANN with Spack.