[scripts] Update benchmark script for latest HW changes
@@ -10,39 +10,16 @@ if [[ ! -f $app ]]; then
exit -1
fi
-echo "This benchmark script and the patches it relies on have not been updated \
-to match the latest hardware changes!"
-echo "Abort"
-exit 1
-
# Create log
mailfile=email_$1
# Run all three scenarios
-scenarios=('Original' '1Hive' '4Hives' 'xbar')
+scenarios=('TopH')
echo "Benchmarked: $1" > $mailfile
for scenario in "${scenarios[@]}"; do
echo $scenario
# Do some changes to get the correct HW state
- if [[ "$scenario" == "Original" ]]; then
- cd $MEMPOOL_DIR
- git apply \
- config/patches/parallel-networks/0001-Revert-global-interconnect-to-parallel_butterfly.patch
- cd $MEMPOOL_DIR/hardware
- num_hives=0
- elif [[ "$scenario" == "xbar" ]]; then
- cd $MEMPOOL_DIR
- git apply \
- config/patches/x-bar/0001-Create-configuration-with-256-cores-in-one-tile.patch
- cd $MEMPOOL_DIR/hardware
- num_hives=1
- elif [[ "$scenario" == "1Hive" ]]; then
- num_hives=1
- elif [[ "$scenario" == "2Hives" ]]; then
- num_hives=2
- else
num_hives=4
- fi
# Run the benchmark
buildpath=build_$1_$scenario
result_dir=results/$(date +"%Y%m%d_%H%M%S_$1_$scenario")
@@ -57,18 +34,6 @@ for scenario in "${scenarios[@]}"; do
echo " - ResultDir=$(pwd)/$result_dir" >> $mailfile
# Sleep until the compilation is done.
while [ ! -f $buildpath/trace_hart_0000.dasm ]; do sleep 5; done
- # Revert changes done for each scenario
- if [[ "$scenario" == "Original" ]]; then
- cd $MEMPOOL_DIR
- git apply -R \
- config/patches/parallel-networks/0001-Revert-global-interconnect-to-parallel_butterfly.patch
- cd $MEMPOOL_DIR/hardware
- elif [[ "$scenario" == "xbar" ]]; then
- cd $MEMPOOL_DIR
- git apply -R \
- config/patches/x-bar/0001-Create-configuration-with-256-cores-in-one-tile.patch
- cd $MEMPOOL_DIR/hardware
- fi
done
wait
