From 199f690442b4e4f8db166868cc5fac8c6137c688 Mon Sep 17 00:00:00 2001 From: Ivan Ilic <33455122+odanivan@users.noreply.github.com> Date: Sat, 14 Jan 2023 17:02:44 +0100 Subject: [PATCH] Update run_experiments.py --- scripts/run_experiments.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/run_experiments.py b/scripts/run_experiments.py index 40c91f5..8090d2b 100644 --- a/scripts/run_experiments.py +++ b/scripts/run_experiments.py @@ -8,10 +8,14 @@ if __name__ == "__main__": build_folder = "build" + results_folder = time.strftime("%Y_%m_%d_%H_%M_%S") if len(sys.argv) >= 2: build_folder = sys.argv[1] + if len(sys.argv) >= 3: + results_folder = sys.argv[2] + benchmark.InitExperiments() executables_path = "../" + build_folder @@ -19,7 +23,7 @@ script_path = pathlib.Path(__file__).parent.resolve() executable_path = pathlib.Path(script_path / executables_path).resolve() output_path = pathlib.Path(script_path / benchmark.experiments_path / - time.strftime("%Y_%m_%d_%H_%M_%S")).resolve() + results_folder).resolve() profiler_output_path = pathlib.Path(output_path / "profiler").resolve() output_path.mkdir(parents=True, exist_ok=True)