Skip to content

Build and Run on SCOREC RHEL9 Workstation

Cameron Smith edited this page Jul 19, 2024 · 6 revisions

environment

module use /opt/scorec/spack/rhel9/v0201_4/lmod/linux-rhel9-x86_64/Core/
module load \
gcc/12.3.0-iil3lno \
cmake/3.26.3-2duxfcd \
mpich/4.1.1-xpoyz4t \
cuda/12.1.1-zxa4msk 

build kokkos

git clone -b develop git@github.com:Kokkos/kokkos.git
bdir=buildKokkosCuda
cmake -S kokkos -B $bdir \
  -DCMAKE_CXX_COMPILER=g++ \
  -DKokkos_ARCH_AMPERE86=on \
  -DKokkos_ENABLE_SERIAL=ON \
  -DKokkos_ENABLE_OPENMP=off \
  -DKokkos_ENABLE_CUDA=on \
  -DKokkos_ENABLE_CUDA_LAMBDA=on \
  -DKokkos_ENABLE_DEBUG=off \
  -DCMAKE_INSTALL_PREFIX=$bdir/install
cmake --build $bdir -j 24 --target install

build and test omegah

git clone git@github.com:SCOREC/omega_h.git
bdir=buildOmegahCuda
cmake -S omega_h -B $bdir \
  -DCMAKE_INSTALL_PREFIX=$PWD/$bdir/install \
  -DBUILD_SHARED_LIBS=off \
  -DOmega_h_USE_Kokkos=on \
  -DKokkos_PREFIX=$PWD/buildKokkosCuda/install \
  -DOmega_h_CUDA_ARCH=75 \
  -DOmega_h_USE_MPI=on \
  -DMPIEXEC_EXECUTABLE=`which mpiexec` \
  -DBUILD_TESTING=on
cmake --build $bdir -j 24
ctest --test-dir $bdir
Clone this wiki locally