diff --git a/src/hpc_multibench/run_configuration.py b/src/hpc_multibench/run_configuration.py index 8323e5b..5e80f57 100755 --- a/src/hpc_multibench/run_configuration.py +++ b/src/hpc_multibench/run_configuration.py @@ -12,6 +12,7 @@ SHELL_SHEBANG = "#!/bin/sh\n" SLURM_JOB_ID_REGEX = r"Submitted batch job (\d+)" SLURM_UNQUEUED_SUBSTRING = "Invalid job id specified" +TIME_COMMAND = "time -p " class RunConfiguration: @@ -74,7 +75,7 @@ def sbatch_contents(self) -> str: sbatch_file += "echo\n" sbatch_file += "\necho '===== RUN ====='\n" - sbatch_file += f"time -p {self.run_command} {self.args}\n" + sbatch_file += f"{TIME_COMMAND}{self.run_command} {self.args}\n" return sbatch_file diff --git a/src/hpc_multibench/test_bench.py b/src/hpc_multibench/test_bench.py index 3a9f28b..fdf466d 100755 --- a/src/hpc_multibench/test_bench.py +++ b/src/hpc_multibench/test_bench.py @@ -221,6 +221,7 @@ def extract_metrics(self, output: str) -> dict[str, str] | None: def report(self) -> None: """Analyse completed run configurations for the test bench.""" + print(f"Reporting data from test bench '{self.name}'") if self.run_configurations_metadata is None: print(f"Metadata file does not exist for test bench '{self.name}'!") return