Skip to content

Building Trilinos with SCOREC manually on Linux machine

RuixiongHu edited this page Jun 24, 2020 · 6 revisions

These are build instructions for a manual build of Trilinos on Linux machine (tested on RHEL machine in SOCREC lab). SCOREC is enabled for the purpose of implementation of PUMI mesh.

Third party libraries (TPLs) are already installed in the SCOREC macihne, so the installation of those will not be covered. For other users, the list of required TPLs could be found here.

Building Albany on Linux Machine

Git clone the most recent stable release of Trilinos

git clone https://github.com/trilinos/Trilinos.git git checkout 48ffeb7 (may vary along time)

Create correct enviroment set up script

TPLs should be pre-loaded for a successful compile. If you're on scorec machine (not jumpgate), simply execute the following lines.

module load  gcc/7.3.0-bt47fwr
module load  mpich/3.3-diz4f6i
module load  cmake/3.14.1-hd7d4ku
module load  openblas/0.3.5-7miavkp
module load  boost/1.69.0-sdetzl5
module load  zlib/1.2.11-ypve67o
module load  xz/system-bm7llce
module load metis/5.1.0-int64-f4iq3jt
module load libxml2/2.9.8-hcsmz5f
module load libpciaccess/0.13.5-gcqhf4k
module load libiconv/1.15-hwi4p6x
module load parmetis/4.0.3-int64-xhy4lk6
module load hdf5/1.10.5-fzrgrkh
module load netcdf/4.6.3-n6uagsd
module load netlib-lapack

If not, please use module avail or contact the system administrator for more information. Corresponding module load options could also be source as shell script.

Create correct cmake script

nano Trilinos-cmake.sh

Copy content in Trilinos-cmake.sh into the shell script just created.

Exp:

  1. If environment set up has been executed, simply ignore the line source ../envRhel7.sh
  2. INSTALL_DIR='../install' specifies the install directory, which will be later used for Albany compile.
  3. Please check the correct TPL source directories and their correcponding name. Macro directory could be retrieved from module show [TPLName]

Creating copy of SCOREC core repo

cd /[PathToTrilinos]/
git clone https://github.com/SCOREC/core.git SCOREC git checkout bc34e3f
Note that the pumi repo has to be named as SCOREC

Cmake and make

cd /[PathToTrilinos]/
mkdir build
mkdir install
cd build
source ../Trilinos-cmake.sh
make -j 8 	
make install