Skip to content

Building MSI on SCOREC RHEL7 Machines

Chonglin Zhang edited this page Apr 30, 2019 · 2 revisions

Instructions to build MSI on the SCOREC RHEL7 machines:

Install SCOREC/core

Currently, there are 2 ways to build/load PUMI/core on SCOREC RHEL7 machines:

  1. Follow the General Build instructions to configure/compile/install PUMI/core.
  2. Load the PUMI/core module directly by using the following command: module load pumi.

Either approach works.

Load PETSc Module

Load the appropriate PETSc modules to set the PETSC_DIR and PETSC_ARCH environment variables. At the moment MSI uses int for all matrix and vector indices which requires that we use a 32-bit version of PETSc, so

module load petsc/3.11.0-int64-hdf5+ftn-real-c-6izmpd7

should suffice. If you are building MSI for use in SCOREC/xgc_scorec the above module includes a version of PETSc that has HDF5 as a dependency which can be used in xgc_scorec as an optional dependency. Otherwise you may prefer to load a version of PETSc without this library.

Install MSI

The development root directory for a SCOREC RHEL7 host should be (something like) /lore/${USER}/dev.

In the MSI project's root directory (should be something like /lore/${USER}/dev/msi):

mkdir build
cp example-config.sh build/config.sh

Edit the parameters at the top of the config.sh file:

DEVLOC=lore
DEVDIR=dev
CC=mpicc
CXX=mpicxx
FTN=mpif90

Finally we should be able to ./config.sh && make -j 8 install to configure, build, and install the MSI library.

Clone this wiki locally