Skip to content

Build and run on AiMOS

Cameron Smith edited this page May 5, 2021 · 5 revisions

The following was tested with https://github.com/SCOREC/omega_h/releases/tag/kokkos3100.

environment setup

module load gcc/7.4.0/1 spectrum-mpi/10.3  cmake/3.20.2 cuda/10.2

build and test

cmake ../omega_h \
  -DCMAKE_INSTALL_PREFIX=$oh \
  -DBUILD_SHARED_LIBS=OFF \
  -DOmega_h_USE_Kokkos=off \
  -DOmega_h_USE_CUDA=on \
  -DOmega_h_CUDA_ARCH=70 \
  -DOmega_h_USE_MPI=on \
  -DBUILD_TESTING=on \
  -DCMAKE_CXX_COMPILER=g++ \
  -DMPIEXEC_EXECUTABLE=`which mpiexec`

If there are no errors, then run:

make -j8 install
ctest

to build and run tests.

Clone this wiki locally