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.

26 lines
682 B

  1. #!/bin/bash
  2. # Check if the correct number of arguments is provided
  3. if [ "$#" -ne 2 ]; then
  4. echo "Usage: $0 <program_location> <json_directory>"
  5. exit 1
  6. fi
  7. # Assign arguments to variables
  8. program_location="$1"
  9. json_directory="$2"
  10. # Check if the specified directory exists
  11. if [ ! -d "$json_directory" ]; then
  12. echo "Error: Directory $json_directory not found."
  13. exit 1
  14. fi
  15. # Iterate over all JSON files in the directory
  16. for json_file in "$json_directory"/*.json; do
  17. # Check if there are matching files
  18. if [ -e "$json_file" ]; then
  19. # Execute the program with the JSON file as parameters
  20. "$program_location" "$json_file" "$json_file"
  21. fi
  22. done