.
This commit is contained in:
@@ -1,54 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
source "$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"/env.sh
|
||||
|
||||
LOG_DIR="$(date +"%Y%m%d_%H%M%S")_build"
|
||||
export LOG_DIR
|
||||
mkdir -p "$LOG_DIR"
|
||||
|
||||
# intel blows up SSH for some reason?
|
||||
module del intel/oneAPI/hpc-toolkit/2022.1.2
|
||||
git clone git@github.com:kokkos/kokkos.git "$KOKKOS_SRC" || true
|
||||
(cd "$KOKKOS_SRC" && git checkout $KOKKOS_SHA) || true
|
||||
git clone git@github.com:kokkos/kokkos-kernels.git "$KERNELS_SRC" || true
|
||||
(cd "$KERNELS_SRC" && git checkout $KERNELS_SHA) || true
|
||||
|
||||
# re-set up our environment
|
||||
source "$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"/env.sh
|
||||
|
||||
module list |& tee "$LOG_DIR/module-list.log"
|
||||
lscpu |& tee "$LOG_DIR/lscpu.log"
|
||||
hostname |& tee "$LOG_DIR/hostname.log"
|
||||
|
||||
## Configure Kokkos
|
||||
cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" \
|
||||
-DCMAKE_INSTALL_PREFIX="$KOKKOS_INSTALL" \
|
||||
-DCMAKE_CXX_STANDARD=17 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_COMPILER=icpx \
|
||||
-DKokkos_ENABLE_SYCL=ON \
|
||||
-DKokkos_ARCH_NATIVE=ON \
|
||||
-DKokkos_ARCH_INTEL_PVC=ON \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
|
||||
## Build & Install Kokkos
|
||||
cmake --build "$KOKKOS_BUILD" -j "$(nproc)" -t install
|
||||
|
||||
## Configure Kernels
|
||||
cmake -S "$KERNELS_SRC" -B "$KERNELS_BUILD" \
|
||||
-DKokkos_DIR="$KOKKOS_INSTALL/lib64/cmake/Kokkos" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_COMPILER=icpx \
|
||||
-DKokkosKernels_ENABLE_TESTS=ON \
|
||||
-DKokkosKernels_ENABLE_PERFTESTS=ON \
|
||||
-DKokkosKernels_ENABLE_BENCHMARK=ON \
|
||||
-DCMAKE_CXX_FLAGS="-fp-model=precise" \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
## Build Kernels
|
||||
cmake --build "$KERNELS_BUILD" -j "$(nproc)"
|
||||
|
||||
srun -N 1 -p PV "$KERNELS_BUILD"/perf_test/sparse/KokkosKernels_sparse_spmv_benchmark -f /projects/cwpears/sparc_gpu_problems/single_gpu/matrix.mm
|
||||
srun -N 1 -p PV --exclude=blake15 -n 1 -t 120 ./download-worker.sh
|
Reference in New Issue
Block a user