Skip to content

Refactor Branch Build Instructions

Ben Bergen edited this page Apr 19, 2017 · 13 revisions

Generic Linux Build

These direction assume that you are using the FleCSI third party libraries project. The build is pretty vanilla except that you need to pull the latest Legion version.

You will also need a version of MPI that supports MPI_THREAD_MULTIPLE. Newer versions of MPICH and OpenMPI have support for this. However, it needs to be enabled in the build. For example, for OpenMPI 2.1.0:

% tar xvf openmpi-2.1.0.bz2
% cd openmpi-2.1.0
% mkdir build
% cd build
% ../configure --prefix=/opt/openmpi/2.1.0 --enable-mpi-thread-multiple
% make
% make install

On Darwin

These direction assume that you are using the FleCSI third party libraries project. The build is pretty vanilla except that you need to pull the latest Legion version.

% module load openmpi/2.0.1-gcc_6.2.0
% module load cmake
% git clone --recursive [email protected]:laristra/flecsi-third-party.git
% cd flecsi-third-party/legion
% git checkout master
% git pull
% cd ..
% mkdir build
% cd build
% ccmake ..

You should disable Exodus and Scotch (default). Set the prefix to wherever you want to install.

% make (this will also install)

After you build, you can set the CMAKE_PREFIX_PATH environment variable to have CMake automatically search this path for dependencies.

% export CMAKE_PREFIX_PATH=/prefix/path/used/above

Build FleCSI (refactor branch)

% git clone --recursive [email protected]:laristra/flecsi.git
% cd flecsi
% git checkout refactor
% git submodule update --recursive
% mkdir build
% cd build
% ccmake ..
Set these
FLECSI_RUNTIME_MODEL="legion"
ENABLE_MPI=ON
Legion_ROOT
make