improved logging, GEMM benchmark
This commit is contained in:
@@ -21,6 +21,7 @@ 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"
|
||||
env |& tee "$LOG_DIR/env.log" || true
|
||||
|
||||
## Configure Kokkos
|
||||
cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" \
|
||||
@@ -30,10 +31,12 @@ cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" \
|
||||
-DCMAKE_CXX_COMPILER="$KOKKOS_SRC"/bin/nvcc_wrapper \
|
||||
-DKokkos_ENABLE_CUDA=ON \
|
||||
-DKokkos_ARCH_NATIVE=ON \
|
||||
-DKokkos_ARCH_HOPPER90=ON
|
||||
-DKokkos_ARCH_HOPPER90=ON \
|
||||
|& tee "$LOG_DIR/kokkos-config.log"
|
||||
|
||||
## Build & Install Kokkos
|
||||
cmake --build "$KOKKOS_BUILD" -j "$(nproc)" -t install
|
||||
cmake --build "$KOKKOS_BUILD" -j "$(nproc)" -t install \
|
||||
|& tee "$LOG_DIR/kokkos-build.log"
|
||||
|
||||
## Configure Kernels
|
||||
cmake -S "$KERNELS_SRC" -B "$KERNELS_BUILD" \
|
||||
@@ -44,9 +47,11 @@ cmake -S "$KERNELS_SRC" -B "$KERNELS_BUILD" \
|
||||
-DKokkosKernels_ENABLE_TPL_CUBLASE=ON \
|
||||
-DKokkosKernels_ENABLE_TESTS=ON \
|
||||
-DKokkosKernels_ENABLE_PERFTESTS=ON \
|
||||
-DKokkosKernels_ENABLE_BENCHMARK=ON
|
||||
-DKokkosKernels_ENABLE_BENCHMARK=ON \
|
||||
|& tee "$LOG_DIR/kernels-config.log"
|
||||
|
||||
## Build Kernels
|
||||
cmake --build "$KERNELS_BUILD" -j "$(nproc)"
|
||||
|
||||
srun -N 1 -p H100 "$KERNELS_BUILD"/perf_test/sparse/KokkosKernels_sparse_spmv_benchmark -f /projects/cwpears/sparc_gpu_problems/single_gpu/matrix.mm
|
||||
VERBOSE=1 make -C "$KERNELS_BUILD" -j "$(nproc)" \
|
||||
KokkosKernels_Blas3_gemm_benchmark \
|
||||
KokkosKernels_sparse_spmv_benchmark \
|
||||
|& tee "$LOG_DIR/kernels-build.log"
|
||||
|
Reference in New Issue
Block a user