This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
694 B

  1. #!/bin/bash
  2. # Assign arguments to variables
  3. program_location="cmake-build-release/dml-benchmark"
  4. json_directory="$1"
  5. output_dir="benchmark-results/"
  6. # Check if the specified directory exists
  7. if [ ! -d "$json_directory" ]; then
  8. echo "Error: Directory $json_directory not found."
  9. exit 1
  10. fi
  11. # Iterate over all JSON files in the directory
  12. for json_file in "$json_directory"/*.json; do
  13. # Check if there are matching files
  14. if [ -e "$json_file" ]; then
  15. # Execute the program with the JSON file as parameters
  16. bn=$(basename $json_file)
  17. name="${bn%.*}"
  18. echo "running test ${name} ..."
  19. "$program_location" "$json_file" "${output_dir}/${name}.json"
  20. fi
  21. done