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.

23 lines
629 B

  1. import os
  2. import json
  3. import shutil
  4. import copy
  5. def process_json_file(file_path):
  6. fr = open(file_path, 'r')
  7. json_data = json.load(fr)
  8. json_data["path"] = "sw"
  9. with open(file_path, 'w') as f:
  10. json.dump(json_data, f, indent=2)
  11. def process_files_in_folder(folder_path):
  12. for filename in os.listdir(folder_path):
  13. file_path = os.path.join(folder_path, filename)
  14. if os.path.isfile(file_path) and filename.endswith('.json'):
  15. process_json_file(file_path)
  16. if __name__ == "__main__":
  17. folder_path = "./peak-perf-allnodes-cpu/"
  18. process_files_in_folder(folder_path)