diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-06-02 15:54:54 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-06-02 15:54:54 +0200 |
commit | 4f29982f012dd35370db94db2b3d6eb333935d37 (patch) | |
tree | 37aae2a4fd4f4f8a89845d71a6750217dafdc66f | |
parent | 78ecad680a90052eae91d92c9192aea8f33fa4eb (diff) |
SpMV: new benchmark scripts
-rwxr-xr-x | SpMV/benchmark-scripts/ccmcc25-sim.sh | 4 | ||||
-rwxr-xr-x | SpMV/benchmark-scripts/ccmcc25.sh | 40 | ||||
-rwxr-xr-x | SpMV/run-paper-strong-full.sh | 29 | ||||
-rwxr-xr-x | SpMV/run-paper-strong-rank.sh | 23 | ||||
-rwxr-xr-x | SpMV/run-paper-weak.sh | 27 |
5 files changed, 41 insertions, 82 deletions
diff --git a/SpMV/benchmark-scripts/ccmcc25-sim.sh b/SpMV/benchmark-scripts/ccmcc25-sim.sh index dcf6f9f..9d1af4e 100755 --- a/SpMV/benchmark-scripts/ccmcc25-sim.sh +++ b/SpMV/benchmark-scripts/ccmcc25-sim.sh @@ -18,14 +18,12 @@ for i in 4 8 16; do done cd ../.. - fn=log/$(hostname)/ccmcc25-sdk${sdk}-sim source ~/lib/local/upmem/upmem-2025.1.0-Linux-x86_64/upmem_env.sh simulator -echo "prim-benchmarks BFS $(git describe --all --long) $(git rev-parse HEAD) $(date -R)" >> ${fn}.txt +echo "prim-benchmarks SpMV $(git describe --all --long) $(git rev-parse HEAD) $(date -R)" >> ${fn}.txt -# BFS does not support repeated kernel invocations → repeat it here parallel -j1 --eta --joblog ${fn}.joblog --resume --header : \ run_benchmark_nmc nr_dpus={nr_dpus} nr_tasklets=16 data={data} \ ::: data bcsstk30.mtx bcsstk30.4.mtx bcsstk30.8.mtx bcsstk30.16.mtx \ diff --git a/SpMV/benchmark-scripts/ccmcc25.sh b/SpMV/benchmark-scripts/ccmcc25.sh new file mode 100755 index 0000000..176ea99 --- /dev/null +++ b/SpMV/benchmark-scripts/ccmcc25.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +mkdir -p log/$(hostname) + +run_benchmark_nmc() { + local "$@" + set -e + sudo limit_ranks_to_numa_node ${numa_rank} + make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} \ + aspectc=1 aspectc_timing=1 dfatool_timing=0 + bin/host_code -v 0 -f data/${data} 2>&1 +} + +export -f run_benchmark_nmc + +cd data/generate +for i in 8 32 64; do + ./replicate ../bcsstk30.mtx $i ../bcsstk30.${i}.mtx +done +cd ../.. + +for sdk in 2023.2.0 2024.1.0 2024.2.0 2025.1.0; do + + fn=log/$(hostname)/ccmcc25-sdk${sdk} + + source /opt/upmem/upmem-${sdk}-Linux-x86_64/upmem_env.sh + + echo "prim-benchmarks SpMV $(git describe --all --long) $(git rev-parse HEAD) $(date -R)" >> ${fn}.txt + + parallel -j1 --eta --joblog ${fn}.joblog --resume --header : \ + run_benchmark_nmc nr_dpus={nr_dpus} nr_tasklets=16 data={data} numa_rank={numa_rank} \ + ::: i $(seq 0 10) \ + ::: data bcsstk30.mtx bcsstk30.8.mtx bcsstk30.32.mtx bcsstk30.64.mtx \ + ::: numa_rank any \ + ::: nr_dpus 64 128 256 512 768 1024 1536 2048 2304 \ + >> ${fn}.txt + +done + +rm -f data/bcsstk30.*.mtx diff --git a/SpMV/run-paper-strong-full.sh b/SpMV/run-paper-strong-full.sh deleted file mode 100755 index 09b7085..0000000 --- a/SpMV/run-paper-strong-full.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -set -e - -( - -echo "prim-benchmarks SpMV strong-full (dfatool edition)" -echo "Started at $(date)" -echo "Revision $(git describe --always)" - -cd data/generate -./replicate ../bcsstk30.mtx 64 ../bcsstk30.mtx.64.mtx -cd ../.. - -# >2048 is not in upstream -for nr_dpus in 2543 2304 256 512 1024 2048; do - for nr_tasklets in 1 2 4 8 16; do - echo - if make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} verbose=1; then - # repetition is not part of upstream setup - for i in `seq 1 50`; do - timeout --foreground -k 1m 3m bin/host_code -v 0 -f data/bcsstk30.mtx.64.mtx || true - done - fi - done -done -) | tee log-paper-strong-full.txt - -rm -f data/bcsstk30.mtx.64.mtx diff --git a/SpMV/run-paper-strong-rank.sh b/SpMV/run-paper-strong-rank.sh deleted file mode 100755 index c73a6a0..0000000 --- a/SpMV/run-paper-strong-rank.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -e - -( - -echo "prim-benchmarks SpMV strong-rank (dfatool edition)" -echo "Started at $(date)" -echo "Revision $(git describe --always)" - -# >64 are not part of upstream -for nr_dpus in 128 1 4 16 64; do - for nr_tasklets in 1 2 4 8 16; do - echo - if make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} verbose=1; then - # repetition is not part of upstream setup - for i in `seq 1 50`; do - timeout --foreground -k 1m 3m bin/host_code -v 0 || true - done - fi - done -done -) | tee log-paper-strong-rank.txt diff --git a/SpMV/run-paper-weak.sh b/SpMV/run-paper-weak.sh deleted file mode 100755 index 74683cc..0000000 --- a/SpMV/run-paper-weak.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -e - -( - -echo "prim-benchmarks SpMV weak (dfatool edition)" -echo "Started at $(date)" -echo "Revision $(git describe --always)" - -for nr_dpus in 1 4 16 64; do - cd data/generate - make - ./replicate ../bcsstk30.mtx ${nr_dpus} /tmp/bcsstk30.mtx.${nr_dpus}.mtx - cd ../.. - for nr_tasklets in 1 2 4 8 16; do - echo - if make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} verbose=1; then - # repetition is not part of upstream setup - for i in `seq 1 50`; do - timeout --foreground -k 1m 3m bin/host_code -v 0 -f /tmp/bcsstk30.mtx.${nr_dpus}.mtx || true - done - fi - done - rm -f /tmp/bcsstk30.mtx.${nr_dpus}.mtx -done | -) tee log-paper-weak.txt |