-
Notifications
You must be signed in to change notification settings - Fork 7
MPI backend
Johan Seland edited this page Mar 31, 2014
·
5 revisions
There is an ongoing development effort to automatically build cluster-enabled simulators from Equelle.
The instructions below detail how to enable the prerequisites for this on Ubuntu 13.10.
Zoltan is a domain-decomposition library that is part of the Trilinos-package from Sandia.
- Ensure you have mpi and Fortran installed
sudo apt-get install openmpi-bin libopenmpi-dev gfortran - Download Trilinos from the Trilinos homepage.
- Create a source directory
mkdir $HOME/src - Change to directory
cd $HOME/src - Extract the source code
tar xvjf <path-to-trilinos-source> - Create a build directory
mkdir $HOME/src/build-trilinos - Change to directory
cd $HOME/src/build-trilinos - Generate the makefile
It is imporant to build the shared-library of Zoltan, with the static library you can get very hard-to-debug link or runtime errors
cmake ../trilinos-11.4.3-Source/ -DCMAKE_INSTALL_PREFIX=<ZOLTAN_INSTALL_DIR> -DTrilinos_ENABLE_Zoltan=ON -DTPL_ENABLE_MPI:BOOL=ON -DMPI_BASE_DIR:PATH=/usr/lib/openmpi -DBUILD_SHARED_LIBS:BOOL=ON -DTrilinos_ENABLE_CXX11:BOOL=ON -DCMAKE_CXX_FLAGS:STRING=-std=c++11 make -j4make install
It is assumed Equelle is checked out into $EQUELLE_SRC and you are building into $EQUELLE_BUILD.
Zoltan is assumed to be installed in $ZOLTAN_INSTALL_DIR.
If you get strange runtime errors when running MPI programs, it is very important that the ${MPI_INCLUDE_PATH} is before ${Zoltan_INCLUDE_DIRS} in the include_directories() clause of any involved CMakeLists.txt file.
cd $EQUELLE_BUILDcmake $EQUELLE_SRC -DCMAKE_PREFIX_PATH=$ZOLTAN_INSTALL_DIR -DEQUELLE_BUILD_MPI=ONmake