-
Notifications
You must be signed in to change notification settings - Fork 1
Building Trilinos with SCOREC manually on Linux machine
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.
git clone https://github.com/trilinos/Trilinos.git
git checkout 48ffeb7 (may vary along time)
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.
nano Trilinos-cmake.sh
Copy content in Trilinos-cmake.sh into the shell script just created.
Exp:
- If environment set up has been executed, simply ignore the line
source ../envRhel7.sh -
INSTALL_DIR='../install'specifies the install directory, which will be later used for Albany compile. - Please check the correct TPL source directories and their correcponding name. Macro directory could be retrieved from
module show [TPLName]
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
cd /[PathToTrilinos]/
mkdir build
mkdir install
cd build
source ../Trilinos-cmake.sh
make -j 8
make install