forked from sandialabs/omega_h
-
Notifications
You must be signed in to change notification settings - Fork 9
Build and run on AiMOS
Cameron Smith edited this page Nov 17, 2021
·
5 revisions
The following was tested with tag:kokkos3100.
module load gcc/7.4.0/1 spectrum-mpi/10.3 cmake/3.20.2 cuda/10.2
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.
module use /opt/nvidia/hpc_sdk/modulefiles/nvhpc
module load 21.3 cmake/3.20.0/1
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