Fix setting roofline-data-type option in both profile and analyze modes (#702)

Signed-off-by: Carrie Fallows <Carrie.Fallows@amd.com>

[ROCm/rocprofiler-compute commit: d527d77337]
This commit is contained in:
cfallows-amd
2025-05-12 23:02:47 -04:00
committed by GitHub
parent 6d6609e68e
commit e025a04a60
2 changed files with 2 additions and 7 deletions
@@ -61,8 +61,7 @@ class webui_analysis(OmniAnalyze_Base):
# define any elements which will have full width
self.__full_width_elements = {1801}
if hasattr(args, "roofline_data_type") and args.roofline_data_type != ["FP32"]:
self.__roofline_data_type = args.roofline_data_type
self.__roofline_data_type = args.roofline_data_type
@demarcate
def build_layout(self, input_filters, arch_configs):
+1 -5
View File
@@ -60,7 +60,6 @@ class Roofline:
"mem_level": "ALL",
"include_kernel_names": False,
"is_standalone": False,
"roofline_data_type": ["FP32"],
}
)
self.__ai_data = None
@@ -77,10 +76,7 @@ class Roofline:
self.__run_parameters["mem_level"] = self.__args.mem_level
if hasattr(self.__args, "sort") and self.__args.sort != "ALL":
self.__run_parameters["sort_type"] = self.__args.sort
if hasattr(
self.__args, "roofline_data_type"
) and self.__args.roofline_data_type != ["FP32"]:
self.__run_parameters["roofline_data_type"] = self.__args.roofline_data_type
self.__run_parameters["roofline_data_type"] = self.__args.roofline_data_type
self.validate_parameters()
def validate_parameters(self):