From f457ddf4f6f425048818a29640305c7378c56283 Mon Sep 17 00:00:00 2001 From: baunsgaard Date: Thu, 17 Dec 2020 14:04:26 +0100 Subject: [PATCH] reenable full script --- scripts/perftest/MatrixTranspose.sh | 118 ++++++++++++++-------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/scripts/perftest/MatrixTranspose.sh b/scripts/perftest/MatrixTranspose.sh index 66a87efdc74..5f39e53b2bc 100755 --- a/scripts/perftest/MatrixTranspose.sh +++ b/scripts/perftest/MatrixTranspose.sh @@ -32,65 +32,65 @@ mkdir -p 'scripts/perftest/results' repeatScript=5 methodRepeat=5 -# sparsities=("1.0 0.1") - -# for s in $sparsities; do - -# LogName="scripts/perftest/results/transpose-skinny-$s.log" -# rm -f $LogName - -# # Baseline -# perf stat -d -d -d -r $repeatScript \ -# systemds scripts/perftest/scripts/transpose.dml \ -# -config scripts/perftest/conf/std.xml \ -# -stats \ -# -args 2500000 50 $s $methodRepeat \ -# >>$LogName 2>&1 - -# echo $LogName -# cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log - -# LogName="scripts/perftest/results/transpose-wide-$s.log" -# rm -f $LogName - -# # Baseline -# perf stat -d -d -d -r $repeatScript \ -# systemds scripts/perftest/scripts/transpose.dml \ -# -config scripts/perftest/conf/std.xml \ -# -stats \ -# -args 50 2500000 $s $methodRepeat \ -# >>$LogName 2>&1 - -# echo $LogName -# cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log - -# LogName="scripts/perftest/results/transpose-full-$s.log" -# rm -f $LogName - -# # Baseline -# perf stat -d -d -d -r $repeatScript \ -# systemds scripts/perftest/scripts/transpose.dml \ -# -config scripts/perftest/conf/std.xml \ -# -stats \ -# -args 20000 5000 $s $methodRepeat \ -# >>$LogName 2>&1 - -# echo $LogName -# cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log -# done - -# LogName="scripts/perftest/results/transpose-large.log" -# rm -f $LogName -# # Baseline -# perf stat -d -d -d -r $repeatScript \ -# systemds scripts/perftest/scripts/transpose.dml \ -# -config scripts/perftest/conf/std.xml \ -# -stats \ -# -args 15000000 30 0.8 $methodRepeat \ -# >>$LogName 2>&1 - -# echo $LogName -# cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log +sparsities=("1.0 0.1") + +for s in $sparsities; do + + LogName="scripts/perftest/results/transpose-skinny-$s.log" + rm -f $LogName + + # Baseline + perf stat -d -d -d -r $repeatScript \ + systemds scripts/perftest/scripts/transpose.dml \ + -config scripts/perftest/conf/std.xml \ + -stats \ + -args 2500000 50 $s $methodRepeat \ + >>$LogName 2>&1 + + echo $LogName + cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log + + LogName="scripts/perftest/results/transpose-wide-$s.log" + rm -f $LogName + + # Baseline + perf stat -d -d -d -r $repeatScript \ + systemds scripts/perftest/scripts/transpose.dml \ + -config scripts/perftest/conf/std.xml \ + -stats \ + -args 50 2500000 $s $methodRepeat \ + >>$LogName 2>&1 + + echo $LogName + cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log + + LogName="scripts/perftest/results/transpose-full-$s.log" + rm -f $LogName + + # Baseline + perf stat -d -d -d -r $repeatScript \ + systemds scripts/perftest/scripts/transpose.dml \ + -config scripts/perftest/conf/std.xml \ + -stats \ + -args 20000 5000 $s $methodRepeat \ + >>$LogName 2>&1 + + echo $LogName + cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log +done + +LogName="scripts/perftest/results/transpose-large.log" +rm -f $LogName +# Baseline +perf stat -d -d -d -r $repeatScript \ + systemds scripts/perftest/scripts/transpose.dml \ + -config scripts/perftest/conf/std.xml \ + -stats \ + -args 15000000 30 0.8 $methodRepeat \ + >>$LogName 2>&1 + +echo $LogName +cat $LogName | grep -E ' r. |Total elapsed time|-----------| instructions | cycles | CPUs utilized ' | tee $LogName.log ########################### ## From disk experiment: