Skip to content

Build and run on AiMOS

Cameron Smith edited this page Nov 17, 2021 · 5 revisions

The following was tested with tag:kokkos3100.

GCC and CUDA 10.2

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.

NVIDIA HPC toolkit 21.3 and CUDA 11.0

environment setup

module use /opt/nvidia/hpc_sdk/modulefiles/nvhpc
module load 21.3 cmake/3.20.0/1

build and test

cmake ../omega_h \
-DOmega_h_USE_CUDA=on \
-DCMAKE_CUDA_COMPILER=/opt/nvidia/hpc_sdk/Linux_ppc64le/21.3/cuda/11.0/bin/nvcc \
-DOmega_h_CUDA_ARCH=70
make -j8 install
ctest