From 72fb3764fcef9b5c2508d38d9b339e2c5622c30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Mon, 29 Jan 2024 14:28:43 +0100 Subject: [PATCH] modify benchmarker script to require less parameters and sit in root dir --- .../benchmark-results/copy-debug-n0ton0-cpu.json | 1 + .../{benchmark-descriptors => }/benchmarker.sh | 15 ++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) create mode 100644 benchmarks/benchmark-results/copy-debug-n0ton0-cpu.json rename benchmarks/{benchmark-descriptors => }/benchmarker.sh (59%) diff --git a/benchmarks/benchmark-results/copy-debug-n0ton0-cpu.json b/benchmarks/benchmark-results/copy-debug-n0ton0-cpu.json new file mode 100644 index 0000000..44b06ca --- /dev/null +++ b/benchmarks/benchmark-results/copy-debug-n0ton0-cpu.json @@ -0,0 +1 @@ +{"count":1,"list":[{"affinity":{"nnode_dst":0,"nnode_src":0,"node":0},"report":{"iterations_completed":0,"status":"ok"},"task":{"batch_size":0,"size":1024}}],"path":"sw","timings":[458943,426883,475809,465337,458535,437789,449605,451021,461939,441250]} \ No newline at end of file diff --git a/benchmarks/benchmark-descriptors/benchmarker.sh b/benchmarks/benchmarker.sh similarity index 59% rename from benchmarks/benchmark-descriptors/benchmarker.sh rename to benchmarks/benchmarker.sh index b7be76e..055e41a 100644 --- a/benchmarks/benchmark-descriptors/benchmarker.sh +++ b/benchmarks/benchmarker.sh @@ -1,16 +1,9 @@ #!/bin/bash -# Check if the correct number of arguments is provided -if [ "$#" -ne 4 ]; then - echo "Usage: $0 " - exit 1 -fi - # Assign arguments to variables -program_location="$1" -json_directory="$2" -output_dir="$3" -file_extender="$4" +program_location="cmake-build-release/dml-benchmark" +json_directory="$1" +output_dir="benchmark-results/" # Check if the specified directory exists if [ ! -d "$json_directory" ]; then @@ -26,6 +19,6 @@ for json_file in "$json_directory"/*.json; do bn=$(basename $json_file) name="${bn%.*}" echo "running test ${name} ..." - "$program_location" "$json_file" "${output_dir}/${name}${file_extender}.json" + "$program_location" "$json_file" "${output_dir}/${name}.json" fi done