diff --git a/tuner/examples/simple/simple_tuner.py b/tuner/examples/simple/simple_tuner.py index d4ec089fe..d737ed56a 100644 --- a/tuner/examples/simple/simple_tuner.py +++ b/tuner/examples/simple/simple_tuner.py @@ -154,6 +154,3 @@ def main(): print("Check the detailed execution logs in:") print(path_config.run_log.resolve()) - - for candidate in candidate_trackers: - libtuner.logging.debug(candidate) diff --git a/tuner/tuner/candidate_gen.py b/tuner/tuner/candidate_gen.py index a1ee421d0..b3cd31079 100644 --- a/tuner/tuner/candidate_gen.py +++ b/tuner/tuner/candidate_gen.py @@ -237,11 +237,6 @@ def run_command(run_pack: RunPack) -> RunResult: text=True, timeout=timeout_seconds, ) - - if result.stdout: - logging.debug(f"stdout: {result.stdout}") - if result.stderr: - logging.debug(f"stderr: {result.stderr}") except subprocess.TimeoutExpired as e: logging.warning( f"Command '{command_str}' timed out after {timeout_seconds} seconds." diff --git a/tuner/tuner/libtuner.py b/tuner/tuner/libtuner.py index 8c5b15761..e738a8c6e 100644 --- a/tuner/tuner/libtuner.py +++ b/tuner/tuner/libtuner.py @@ -803,7 +803,7 @@ def compile( compiled_candidates = [c for c in compiled_candidates if c is not None] success_rate = float(len(compiled_candidates)) / float(len(candidates)) logging.info( - f"Successfully compiled [{len(compiled_candidates)}] candidates. Success rate: {success_rate}" + f"Successfully compiled [{len(compiled_candidates)}] candidates. Success rate: {success_rate:.2f}" ) # Remove duplicate vmfbs from the candidate list. @@ -875,7 +875,7 @@ def get_speedup(result: BenchmarkResult) -> float: speedup = f"{round(get_speedup(r) * 100, 2)}% of baseline" else: speedup = "baseline unavailable" - logging.info(f"Candidate {r.candidate_id} time: {r.time} ({speedup})") + logging.info(f"Candidate {r.candidate_id} time: {r.time:.2f} ({speedup})") return best_results