From fd9e766986c43143c29728be491a48e893725ad0 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 8 Mar 2024 14:23:56 +0100 Subject: BS: handle alloc/load/free overhead as parameters; vary them for fgbs24a --- BS/host/app.c | 6 ++++-- BS/run-fgbs24a.sh | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'BS') diff --git a/BS/host/app.c b/BS/host/app.c index bcb22c5..4f73788 100644 --- a/BS/host/app.c +++ b/BS/host/app.c @@ -287,8 +287,10 @@ int main(int argc, char **argv) { if (status) { printf("[" ANSI_COLOR_GREEN "OK" ANSI_COLOR_RESET "] results are equal\n"); if (rep >= p.n_warmup) { - printf("[::] BS UPMEM | n_dpus=%d n_ranks=%d n_tasklets=%d e_type=%s block_size_B=%d n_elements=%lu b_sdk_singlethreaded=%d ", - NR_DPUS, nr_of_ranks, NR_TASKLETS, XSTR(DTYPE), BLOCK_SIZE, input_size, SDK_SINGLETHREADED); + printf("[::] BS UPMEM | n_dpus=%d n_ranks=%d n_tasklets=%d e_type=%s block_size_B=%d n_elements=%lu", + NR_DPUS, nr_of_ranks, NR_TASKLETS, XSTR(DTYPE), BLOCK_SIZE, input_size); + printf(" b_sdk_singlethreaded=%d b_with_alloc_overhead=%d b_with_load_overhead=%d b_with_free_overhead=%d ", + SDK_SINGLETHREADED, WITH_ALLOC_OVERHEAD, WITH_LOAD_OVERHEAD, WITH_FREE_OVERHEAD); printf("| latency_alloc_us=%f latency_load_us=%f latency_cpu_us=%f latency_write_us=%f latency_kernel_us=%f latency_read_us=%f latency_free_us=%f", timer.time[0], timer.time[1], diff --git a/BS/run-fgbs24a.sh b/BS/run-fgbs24a.sh index 9cefea4..06f8766 100755 --- a/BS/run-fgbs24a.sh +++ b/BS/run-fgbs24a.sh @@ -4,6 +4,8 @@ set -e mkdir -p $(hostname) +ts=$(date +%Y%m%d) + # BL: use 2^(BL) B blocks for MRAM <-> WRAM transfers on PIM module # T: data type # -w: number of un-timed warmup iterations @@ -16,13 +18,16 @@ echo "prim-benchmarks BS (dfatool fgbs24a edition)" echo "Started at $(date)" echo "Revision $(git describe --always)" -for nr_dpus in 2543 2304 2048; do +for nr_dpus in 2304 2048 2543; do for nr_tasklets in 16; do echo if make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} BL=10; then timeout --foreground -k 1m 30m bin/bs_host -w 0 -e 100 -i 16777216 || true fi + if make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} BL=10 WITH_ALLOC_OVERHEAD=1 WITH_LOAD_OVERHEAD=1 WITH_FREE_OVERHEAD=1; then + timeout --foreground -k 1m 30m bin/bs_host -w 0 -e 100 -i 16777216 || true + fi done done echo "Completed at $(date)" -) | tee "$(hostname)/fgbs24a.txt" +) | tee "$(hostname)/${ts}-fgbs24a.txt" -- cgit v1.2.3