Browse Source

modify benchmarker script to require less parameters and sit in root dir

master
Constantin Fürst 11 months ago
parent
commit
72fb3764fc
  1. 1
      benchmarks/benchmark-results/copy-debug-n0ton0-cpu.json
  2. 15
      benchmarks/benchmarker.sh

1
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]}

15
benchmarks/benchmark-descriptors/benchmarker.sh → benchmarks/benchmarker.sh

@ -1,16 +1,9 @@
#!/bin/bash #!/bin/bash
# Check if the correct number of arguments is provided
if [ "$#" -ne 4 ]; then
echo "Usage: $0 <program_location> <descriptor-directory> <output-directory> <file-extender>"
exit 1
fi
# Assign arguments to variables # 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 # Check if the specified directory exists
if [ ! -d "$json_directory" ]; then if [ ! -d "$json_directory" ]; then
@ -26,6 +19,6 @@ for json_file in "$json_directory"/*.json; do
bn=$(basename $json_file) bn=$(basename $json_file)
name="${bn%.*}" name="${bn%.*}"
echo "running test ${name} ..." echo "running test ${name} ..."
"$program_location" "$json_file" "${output_dir}/${name}${file_extender}.json"
"$program_location" "$json_file" "${output_dir}/${name}.json"
fi fi
done done
Loading…
Cancel
Save