forked from sandialabs/omega_h
-
Notifications
You must be signed in to change notification settings - Fork 10
Build and Run on Corona
Cameron Smith edited this page Sep 1, 2020
·
17 revisions
git clone git@github.com:SCOREC/omega_h.git
cd omega_h
git checkout clang_11
Create envCoronaRocm.sh
with the following contents:
module load opt
module load rocm/3.6.0
module unload intel
source envCoronaClang11.sh
mkdir build-omega-clang11
cd !$
cmake ../omega_h \
-DCMAKE_INSTALL_PREFIX=$PWD/install \
-DBUILD_SHARED_LIBS=OFF \
-DOmega_h_USE_HIP=OFF \
-DOmega_h_USE_Kokkos=OFF \
-DOmega_h_USE_MPI=OFF \
-DCMAKE_CXX_COMPILER=/opt/rocm-3.6.0/llvm/bin/clang++ \
-DOmega_h_CXX_WARNINGS=OFF \
-DBUILD_TESTING=ON
make -j4
ctest # all tests should pass
source envCoronaClang11.sh
mkdir build-omega-rocm36
cd !$
rocm=/opt/rocm-3.6.0
export HIP_PATH=$rocm/hip
export CMAKE_PREFIX_PATH=$rocm:$CMAKE_PREFIX_PATH
cmake ../omega_h \
-DCMAKE_INSTALL_PREFIX=$PWD/install \
-DBUILD_SHARED_LIBS=OFF \
-DOmega_h_USE_HIP=ON \
-DOmega_h_USE_Kokkos=OFF \
-DCMAKE_CXX_FLAGS="--amdgpu-target=gfx906" \
-DHIP_PATH=${rocm}/hip \
-DOmega_h_USE_MPI=OFF \
-DCMAKE_CXX_COMPILER=hipcc \
-DOmega_h_CXX_WARNINGS=OFF \
-DBUILD_TESTING=ON
make -j4
salloc -n 1 -p mi60 -t 10
source omega_h/envCoronaRocm.sh
cd build-omega-rocm36
ctest