-
Notifications
You must be signed in to change notification settings - Fork 1
Building Albany Manually on SCOREC Linux Machines
These are build instructions for a manual build of this version of Albany on Linux machine (tested on RHEL machine in SOCREC lab).
Trilinos with SCOREC enabled is required to before building this version of Albany, please refer to: Building Trilinos manually on Linux machine
Third party libraries (TPLs) are already installed in the SCOREC macihne, so the installation of those will not be covered. The list of required TPLs will be mentioned in Trilinos install instruction.
Introduction in Linux basics and getting into SCOREC jumpgated and machines will not be coverd here. Related information could be found from the first part of this documentation: Jacob Documentation
git clone https://github.com/SCOREC/Albany.git
Exp: Clone the correct version of Albany into local directory. Please confirm a correct version of CMakelist.txt that works for your research into the main directory (which means correct CMakelist that enables the function you need).
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 do-cmake-albany.sh
Copy content in do-cmake-albany.sh into the shell script just created.
Exp: Please modify the path to find the correct Trilinos in line
export TRILINOS_INSTALL_DIR=/lore/hur3/Trilinos/install.
This default Trilinos install will be kept and updated but could be modified to your own Trilinos if you prefer. Install instruction for Trilinos could be found at Building Trilinos manually on Linux machine.
rm -r /Albany/build
mkdir /Albany/build
cd /Albany/build
source ../do-cmake-albany.sh
make -j 8
Exp: Or make -j [np] where np is the number of processes you would like to use.
If compilation failed, please use serial make command make to watch the compilation errors.