diff --git a/profiler/compare_tools/compare_backend/compare_bean/overall_metrics_bean.py b/profiler/compare_tools/compare_backend/compare_bean/overall_metrics_bean.py index 544f8f5234d71eef52b9188e045c83baa3c70f20..18b91d737fd7191467774e12781c66782043f0a7 100644 --- a/profiler/compare_tools/compare_backend/compare_bean/overall_metrics_bean.py +++ b/profiler/compare_tools/compare_backend/compare_bean/overall_metrics_bean.py @@ -28,6 +28,8 @@ class OverallMetricsBean: def __init__(self, base_info: ProfilingInfo, comparison_info: ProfilingInfo): self._base_data = OverallMetricsInfo(base_info).overall_metrics self._comparison_data = OverallMetricsInfo(comparison_info).overall_metrics + if not any((base_info.is_not_minimal_profiling(), comparison_info.is_not_minimal_profiling())): + self.TABLE_NAME += ' (Minimal Prof)' @property def rows(self): diff --git a/profiler/compare_tools/compare_backend/profiling_parser/base_profiling_parser.py b/profiler/compare_tools/compare_backend/profiling_parser/base_profiling_parser.py index b56b30936fcfe57acb0121f206e6547ce9603473..44f0e7105db6bedbdda1f8a230d0c7858b3e38c5 100644 --- a/profiler/compare_tools/compare_backend/profiling_parser/base_profiling_parser.py +++ b/profiler/compare_tools/compare_backend/profiling_parser/base_profiling_parser.py @@ -322,9 +322,10 @@ class BaseProfilingParser(ABC): print(f"[WARNING] Can't find any communication op in the file: {self._profiling_path}") if self._enable_kernel_compare and not self._result_data.kernel_details: if self._profiling_type == Constant.GPU: - print(f"[WARNING] kernel compare between GPU data and NPU data is not supported.") + print(f"[WARNING] kernel compare only support between NPU data and NPU data.") else: - print(f"[WARNING] Can't find any kernel details in the file: {self._profiling_path}") + print(f"[WARNING] Can't find any valid kernels in the file: {self._profiling_path}. Please " + f"make sure that the profiling data is greater than level0 and aic_metrics=PipeUtilization.") def _read_trace_event(self): try: diff --git a/profiler/compare_tools/compare_backend/profiling_parser/npu_profiling_parser.py b/profiler/compare_tools/compare_backend/profiling_parser/npu_profiling_parser.py index 4139a4b6d7be904c9378dd7b76cef9b9d29d2131..7a5c207e7a08f0a56980011c25e5ab918536ef24 100644 --- a/profiler/compare_tools/compare_backend/profiling_parser/npu_profiling_parser.py +++ b/profiler/compare_tools/compare_backend/profiling_parser/npu_profiling_parser.py @@ -79,8 +79,8 @@ class NPUProfilingParser(BaseProfilingParser): [kernel.name, kernel.duration]) if not kernels_dict: if self._step_id != Constant.VOID_STEP: - print(f"[ERROR] There is no kernel details infomation for step {self._step_id}," \ - " please check whether the data contains this step.") + print(f"[ERROR] There is no kernel details information for step {self._step_id}, " + f"please check whether the data contains this step.") else: print("[ERROR] Failed to enable enable_kernel_compare, type of kernel_details.csv is null.") return