Skip to content

Commit

Permalink
[Nek5000#305][Hotfix] Don't cross-compile OCCA kernel launchers unles…
Browse files Browse the repository at this point in the history
…s in serial mode.
  • Loading branch information
MalachiTimothyPhillips committed Jun 6, 2021
1 parent 5c163f0 commit 926fa01
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/nrsqsub_summit
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ fi
: ${NEKRS_HOME:="$HOME/.local/nekrs"}
: ${OCCA_CACHE_DIR:="$PWD/.cache/occa"}
NVME_HOME="/mnt/bb/$USER/"
XL_HOME="/sw/summit/xl/16.1.1-3/xlC/16.1.1"
XL_HOME="/sw/summit/xl/16.1.1-9/xlC/16.1.1"

: ${CPUONLY:=0}
export NEKRS_HOME
export OCCA_CACHE_DIR
export NEKRS_HYPRE_NUM_THREADS=1
export NEKRS_GPU_MPI=1
export OCCA_CXX="$XL_HOME/bin/xlc"
export OCCA_CXXFLAGS="-O3 -qarch=pwr9 -qhot -DUSE_OCCA_MEM_BYTE_ALIGN=64"
export OCCA_LDFLAGS="$XL_HOME/lib/libibmc++.a"
if [ $CPUONLY -eq 1 ]; then
export OCCA_CXX="$XL_HOME/bin/xlc"
export OCCA_CXXFLAGS="-O3 -qarch=pwr9 -qhot -DUSE_OCCA_MEM_BYTE_ALIGN=64"
export OCCA_LDFLAGS="$XL_HOME/lib/libibmc++.a"
fi

#export OMPI_LD_PRELOAD_POSTPEND=$OLCF_SPECTRUM_MPI_ROOT/lib/libmpitrace.so

Expand Down

0 comments on commit 926fa01

Please sign in to comment.