From c1f89f2503c8aa2a7e4a3e25505b210aedae12ad Mon Sep 17 00:00:00 2001 From: francis0407 Date: Tue, 26 Apr 2022 15:01:37 +0800 Subject: [PATCH] fix temp file path --- .gitignore | 1 + evaluation/fig1/generate.py | 2 +- evaluation/fig13/generate.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 05ffa29..b92f9b8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ cmake-build-debug evaluation/*/*.pdf evaluation/*/*.dat evaluation/*/*.eps +evaluation/*/*.tmp script/__pycache__ script/rt_dnn/__pycache__ src/reef/rpc/* \ No newline at end of file diff --git a/evaluation/fig1/generate.py b/evaluation/fig1/generate.py index c1a88d7..fa9ca68 100644 --- a/evaluation/fig1/generate.py +++ b/evaluation/fig1/generate.py @@ -137,7 +137,7 @@ def generate_plot(exe_lat, preempt_lat): generate_plot(exe_lat, preempt_lat) def SubplotD(): - conf_file_path = "/tmp/fig1d_conf_file.json" + conf_file_path = "fig1d_conf_file.json.tmp" frequency = [1, 10, 50, 100, 150, 200, 220, 230, 250, 300, 350] methods = ["RESET", "STREAM"] def prepare_config(freq): diff --git a/evaluation/fig13/generate.py b/evaluation/fig13/generate.py index 8b4ce2b..45c43e8 100644 --- a/evaluation/fig13/generate.py +++ b/evaluation/fig13/generate.py @@ -90,7 +90,7 @@ def SubplotB(): resource_dir = os.getenv("REEF_RESOURCE_DIR") queue_size = [10, 100, 200, 300, 400, 500] methods = ["reset", "wait"] - temp_file_path = "/tmp/reef_fig13_temp.json" + temp_file_path = "reef_fig13_temp.json.tmp" jfile = open(resource_dir+"/bench_kernel/bench_kernel.json", "r") base_json = json.loads(jfile.read())