Skip to content

Commit

Permalink
[scripts, ci] Fix dotproduct plots
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Nov 29, 2023
1 parent d900f6a commit 033a97d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,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")
Expand Down
4 changes: 4 additions & 0 deletions scripts/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 033a97d

Please sign in to comment.