|
1 | 1 | # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES |
2 | | -# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +# Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
3 | 3 | # SPDX-License-Identifier: Apache-2.0 |
4 | 4 | # |
5 | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -31,12 +31,12 @@ class MegatronBridgeReportGenerationStrategy(ReportGenerationStrategy): |
31 | 31 | metrics: ClassVar[list[str]] = ["default", "step-time", "tflops-per-gpu"] |
32 | 32 |
|
33 | 33 | def get_log_file(self) -> Path | None: |
34 | | - log = self.test_run.output_path / "megatron_bridge_launcher.log" |
| 34 | + log = self.test_run.output_path / "cloudai_megatron_bridge_launcher.log" |
35 | 35 | return log if log.is_file() else None |
36 | 36 |
|
37 | 37 | @property |
38 | 38 | def results_file(self) -> Path: |
39 | | - return self.get_log_file() or (self.test_run.output_path / "megatron_bridge_launcher.log") |
| 39 | + return self.get_log_file() or (self.test_run.output_path / "cloudai_megatron_bridge_launcher.log") |
40 | 40 |
|
41 | 41 | def can_handle_directory(self) -> bool: |
42 | 42 | return self.get_log_file() is not None |
@@ -75,8 +75,8 @@ def generate_report(self) -> None: |
75 | 75 | log_file, step_times_s, gpu_tflops = self._get_extracted_data() |
76 | 76 | if not log_file: |
77 | 77 | logging.error( |
78 | | - "No Megatron-Bridge launcher log file found: %s", |
79 | | - self.test_run.output_path / "megatron_bridge_launcher.log", |
| 78 | + "No Megatron-Bridge launcher log file found in: %s", |
| 79 | + self.test_run.output_path, |
80 | 80 | ) |
81 | 81 | return |
82 | 82 |
|
@@ -130,8 +130,8 @@ def get_metric(self, metric: str) -> float: |
130 | 130 | log_file, step_times_s, gpu_tflops = self._get_extracted_data() |
131 | 131 | if not log_file: |
132 | 132 | logging.error( |
133 | | - "No Megatron-Bridge launcher log file found: %s", |
134 | | - self.test_run.output_path / "megatron_bridge_launcher.log", |
| 133 | + "No Megatron-Bridge launcher log file found in: %s", |
| 134 | + self.test_run.output_path, |
135 | 135 | ) |
136 | 136 | return METRIC_ERROR |
137 | 137 | if not step_times_s: |
|
0 commit comments