Skip to content

Commit

Permalink
Merge pull request #127 from SCOREC/ac/perlmutter-test-fix
Browse files Browse the repository at this point in the history
Fix Perlmutter Build
  • Loading branch information
cwsmith authored Feb 2, 2025
2 parents 5f30588 + 8135e32 commit ebacca1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 36 deletions.
40 changes: 13 additions & 27 deletions .github/workflows/perlmutter/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,37 @@ branch=$1

cd $SCRATCH/globus-compute/omega_h-test

export root=$PWD
module load PrgEnv-gnu
module load cudatoolkit
module load cmake

export kk=$root/build-kokkos/install # This is where kokkos will be (or is) installed
export oh=$root/build-omega_h/install # This is where omega_h will be (or is) installed
export CMAKE_PREFIX_PATH=$kk:$kk/lib64/cmake:$oh:$CMAKE_PREFIX_PATH
export MPICH_CXX=$root/kokkos/bin/nvcc_wrapper

export SLURM_CPU_BIND="cores"


# #kokkos
# rm ${kk%%install} -rf
# # kokkos
# rm kokkos -rf
# git clone -b 4.2.00 https://github.com/kokkos/kokkos.git
# cmake -S kokkos -B ${kk%%install} \
# -DCMAKE_INSTALL_PREFIX=$kk \
# rm build-kokkos -rf
# git clone -b 4.5.00 https://github.com/kokkos/kokkos.git
# cmake -S kokkos -B build-kokkos \
# -DCMAKE_INSTALL_PREFIX=build-kokkos/install \
# -DCMAKE_BUILD_TYPE="Release" \
# -DCMAKE_CXX_COMPILER=$root/kokkos/bin/nvcc_wrapper \
# -DCMAKE_CXX_COMPILER=$PWD/kokkos/bin/nvcc_wrapper \
# -DKokkos_ARCH_AMPERE80=ON \
# -DKokkos_ENABLE_SERIAL=ON \
# -DKokkos_ENABLE_OPENMP=off \
# -DKokkos_ENABLE_CUDA=on \
# -DKokkos_ENABLE_CUDA_LAMBDA=on \
# -DKokkos_ENABLE_DEBUG=off
# cmake --build ${kk%%install} -j 24 --target install
# cmake --build build-kokkos -j 24 --target install

#omegah
rm ${oh%%install} -rf
# omegah
rm omega_h -rf
rm build-omega_h -rf
git clone https://github.com/SCOREC/omega_h.git
cd omega_h && git checkout $branch && cd -
cmake -S omega_h -B ${oh%%install} \
-DCMAKE_INSTALL_PREFIX=$oh \
cmake -S omega_h -B build-omega_h \
-DCMAKE_INSTALL_PREFIX=build-omega_h/install \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=off \
-DOmega_h_USE_Kokkos=ON \
-DOmega_h_USE_CUDA=on \
-DOmega_h_CUDA_ARCH=80 \
-DOmega_h_USE_MPI=on \
-DMPIEXEC_EXECUTABLE=srun \
-DBUILD_TESTING=on \
-DCMAKE_C_COMPILER=cc \
-DCMAKE_CXX_COMPILER=CC \
-DKokkos_PREFIX=$kk/lib64/cmake
cmake --build ${oh%%install} -j 24 --target install
-DKokkos_PREFIX=$PWD/build-kokkos/install/lib64/cmake
cmake --build build-omega_h -j 24 --target install
10 changes: 1 addition & 9 deletions .github/workflows/perlmutter/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@

name=omega_h

cd $SCRATCH/globus-compute/$name-test
cd $SCRATCH/globus-compute/$name-test/build-$name

export root=$PWD
module load PrgEnv-gnu
module load cudatoolkit
module load cmake
export MPICH_CXX=$root/kokkos/bin/nvcc_wrapper
export SLURM_CPU_BIND="cores"

cd build-$name
salloc --time 00:20:00 --constrain=gpu --qos=interactive --nodes=1 --ntasks-per-node=40 --cpus-per-task=1 --gpus=1 --account=m4564 ctest
cat $PWD/Testing/Temporary/LastTest.log

0 comments on commit ebacca1

Please sign in to comment.