Skip to content

Commit

Permalink
Fix Chicoma build & bump Parthenon to Kokkos 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Prather committed Nov 30, 2023
1 parent 712de12 commit 556eab5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions external/kokkos-kernels/KokkosBatched_Dot_Internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "KokkosBatched_Util.hpp"

#define KOKKOS_IMPL_DO_NOT_USE_PRINTF(...) ::printf(__VA_ARGS__)

namespace KokkosBatched {

///
Expand Down
2 changes: 1 addition & 1 deletion external/parthenon
Submodule parthenon updated 1 files
+1 −1 external/Kokkos
10 changes: 8 additions & 2 deletions machines/chicoma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ if [[ "$HOST" == "ch-fe"* || "$HOST" == "nid00"* ]]; then
else
module load PrgEnv-aocc
fi
module load cray-hdf5-parallel cmake
# Use your own HDF5, Chicoma's is old
#module load cray-hdf5-parallel
module load cmake
# System HDF5 can't use compression
EXTRA_FLAGS="-DPARTHENON_DISABLE_HDF5_COMPRESSION=ON $EXTRA_FLAGS"
export MPICH_GPU_SUPPORT_ENABLED=1
# Parthenon crashes with device buffers on some Nvidia machines...
# if [conditions]
EXTRA_FLAGS="-DPARTHENON_ENABLE_HOST_COMM_BUFFERS=ON $EXTRA_FLAGS"
#else
#export MPICH_GPU_SUPPORT_ENABLED=1

# Runtime opts
MPI_EXE=srun
Expand Down
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ fi

### Build HDF5 ###
# If we're building HDF5, do it after we set *all flags*
if [[ "$ARGS" == *"hdf5"* && "$ARGS" == *"clean"* ]]; then
if [[ "$ARGS" == *"hdf5"* && "$ARGS" == *"clean"* && "$ARGS" != *"dryrun"* ]]; then
H5VER=1.14.2
H5VERU=1_14_2
cd external
Expand Down

0 comments on commit 556eab5

Please sign in to comment.