Skip to content

Building with Omegah

Cameron Smith edited this page Mar 2, 2022 · 2 revisions

The following was tested on a SCOREC RHEL7 system with SCOREC/omega_h master@9174a9 and SCOREC/core develop@babf73.

build omegah

module load gcc/7.3.0-bt47fwr
module load mpich cmake

git clone git@github.com:SCOREC/omega_h.git
cmake -S omega_h -B buildOmegah \
-DCMAKE_CXX_COMPILER=mpicxx \
-DCMAKE_INSTALL_PREFIX=$PWD/buildOmegah/install \
-DOmega_h_USE_MPI=on \
-DOmega_h_USE_CUDA=off \
-DBUILD_TESTING=OFF
cmake --build buildOmegah -j8 --target install 

build pumi

module load gcc/7.3.0-bt47fwr
module load mpich cmake
module load zoltan/3.83-int32-4eacxwk

git clone git@github.com:SCOREC/core.git
cmake -S core -B buildCore \
 -DBUILD_SHARED_LIBS=off \
 -DCMAKE_C_COMPILER=mpicc \
 -DCMAKE_CXX_COMPILER=mpicxx \
 -DSCOREC_CXX_OPTIMIZE=on \
 -DENABLE_ZOLTAN=on \
 -DENABLE_OMEGA_H=on \
 -DMESHES=/path/to/pumi-meshes/ \
 -DCMAKE_INSTALL_PREFIX=$PWD/buildCore/install
cmake --build buildCore -j8