From 9263460e7ca94c3b9fb09e3e76480d6f7566a642 Mon Sep 17 00:00:00 2001 From: Matteo Perotti Date: Wed, 29 Nov 2023 18:25:29 +0100 Subject: [PATCH] [scripts, ci] Fix dotproduct plots --- .github/workflows/ci.yml | 2 +- scripts/benchmark.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64b9d36cf..b2efb8e37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -579,7 +579,7 @@ jobs: for kernel in fdotproduct dotproduct; do > ${kernel}.benchmark for nr_lanes in 2 4 8 16; do - cat ${kernel}_${nr_lanes}.benchmark >> ${kernel}.benchmark + cat ${kernel}_${nr_lanes}_bar_plots.benchmark >> ${kernel}.benchmark done python scripts/process_dotp.py ${kernel} ${kernel}.benchmark ${kernel} tar -cvf ${kernel}.tar $(find . -name "${kernel}_*.png") diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 8880b8e1d..04732b5ac 100755 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -603,11 +603,13 @@ fdotproduct() { # Default System compile_and_run $kernel "$defines" $tempfile 0 || exit extract_performance $kernel "$metadata 0" "$args" $tempfile ${kernel}_${nr_lanes}.benchmark || exit + extract_performance_dotp $kernel "$args" $sew $tempfile ${kernel}_${nr_lanes}_bar_plots.benchmark || exit # Ideal Dispatcher System, if QuestaSim is available if [ "$ci" == 0 ]; then compile_and_run $kernel "$defines" $tempfile 1 || exit extract_performance $kernel "$metadata 1" "$args" $tempfile ${kernel}_${nr_lanes}_ideal.benchmark || exit + extract_performance_dotp $kernel "$args" $sew $tempfile ${kernel}_${nr_lanes}_ideal_bar_plots.benchmark || exit # Verify ID results is non-blocking! Check the report afterwards verify_id_results 0 | tee -a ${error_rpt} fi @@ -645,11 +647,13 @@ dotproduct() { # Default System compile_and_run $kernel "$defines" $tempfile 0 || exit extract_performance $kernel "$metadata 0" "$args" $tempfile ${kernel}_${nr_lanes}.benchmark || exit + extract_performance_dotp $kernel "$args" $sew $tempfile ${kernel}_${nr_lanes}_bar_plots.benchmark || exit # Ideal Dispatcher System, if QuestaSim is available if [ "$ci" == 0 ]; then compile_and_run $kernel "$defines" $tempfile 1 || exit extract_performance $kernel "$metadata 1" "$args" $tempfile ${kernel}_${nr_lanes}_ideal.benchmark || exit + extract_performance_dotp $kernel "$args" $sew $tempfile ${kernel}_${nr_lanes}_ideal_bar_plots.benchmark || exit # Verify ID results is non-blocking! Check the report afterwards verify_id_results 0 | tee -a ${error_rpt} fi