Skip to content

Commit

Permalink
Update run_experiments.py
Browse files Browse the repository at this point in the history
  • Loading branch information
odanivan authored Jan 14, 2023
1 parent b74cfbe commit 199f690
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/run_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@
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

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)
Expand Down

0 comments on commit 199f690

Please sign in to comment.