Enabling Standalone GUI on 2.x (#214)

* Initial overhaul of Analyze mode. Basic CLI is enabled.

Signed-off-by: colramos-amd <colramos@amd.com>

* Merge branch '2.x' of github.com:AMDResearch/omniperf into 2.x-dev

Signed-off-by: colramos-amd <colramos@amd.com>

* fix comment typo

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>

* Move error logging to util.py

Signed-off-by: colramos-amd <colramos@amd.com>

* Move perfmon_configs dir into omniperf_soc dir. Rename config dirs for clarity

Signed-off-by: colramos-amd <colramos@amd.com>

* Add a supported_archs property to Omniperf base class

Signed-off-by: colramos-amd <colramos@amd.com>

* Add css assets for GUI styling

Signed-off-by: colramos-amd <colramos@amd.com>

* Re-organize roofline class. Improved useability

Signed-off-by: colramos-amd <colramos@amd.com>

* Enable standalone GUI

Signed-off-by: colramos-amd <colramos@amd.com>

* Remove outdated metric_configs. This was moved to omniperf_soc dir

Signed-off-by: colramos-amd <colramos@amd.com>

* Fix small bug in GUI to enable Mi100 visualization

Signed-off-by: colramos-amd <colramos@amd.com>

---------

Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: Cole Ramos <colramos@amd.com>
Co-authored-by: Karl W Schulz <karl.schulz@amd.com>

[ROCm/rocprofiler-compute commit: 7d93a086c2]
This commit is contained in:
Cole Ramos
2023-12-18 16:37:01 -06:00
committed by GitHub
parent 4719fa0e3b
commit c73bd2bf91
165 changed files with 37024 additions and 14772 deletions
@@ -36,7 +36,7 @@ class cli_analysis(OmniAnalyze_Base):
def pre_processing(self, omni_soc):
"""Perform any pre-processing steps prior to analysis.
"""
super().pre_processing(omni_soc)
super().pre_processing()
if self.get_args().random_port:
error("--gui flag is required to enable --random-port")
for d in self.get_args().path:
@@ -44,20 +44,23 @@ class cli_analysis(OmniAnalyze_Base):
kernel_name_shortener(d[0], self.get_args().kernel_verbose)
file_io.create_df_kernel_top_stats(
d[0],
self._runs[d[0]].filter_gpu_ids,
self._runs[d[0]].filter_dispatch_ids,
self.get_args().time_unit,
self.get_args().max_kernel_num
raw_data_dir=d[0],
filter_gpu_ids=self._runs[d[0]].filter_gpu_ids,
filter_dispatch_ids=self._runs[d[0]].filter_dispatch_ids,
time_unit=self.get_args().time_unit,
max_kerenel_num=self.get_args().max_kernel_num
)
# create 'mega dataframe'
self._runs[d[0]].raw_pmc = file_io.create_df_pmc(
d[0], self.get_args().verbose
)
is_gui = False
# create the loaded table
parser.load_table_data(
self._runs[d[0]], d[0], is_gui, self.get_args().g, self.get_args().verbose
workload=self._runs[d[0]],
dir=d[0],
is_gui=False,
debug=self.get_args().debug,
verbose=self.get_args().verbose
)
@@ -65,6 +68,7 @@ class cli_analysis(OmniAnalyze_Base):
def run_analysis(self):
"""Run CLI analysis.
"""
super().run_analysis()
if self.get_args().list_kernels:
tty.show_kernels(
self.get_args(),