diff --git a/src/omniperf_soc/soc_gfx908.py b/src/omniperf_soc/soc_gfx908.py index 740b914df4..cab8e36066 100644 --- a/src/omniperf_soc/soc_gfx908.py +++ b/src/omniperf_soc/soc_gfx908.py @@ -60,7 +60,7 @@ class gfx908_soc (OmniSoC_Base): if self.get_args().roof_only: self.error("%s does not support roofline analysis" % self.get_soc()) # Perfmon filtering - self.perfmon_filter() + self.perfmon_filter(self.get_args().roof_only) @demarcate def post_profiling(self): diff --git a/src/utils/utils.py b/src/utils/utils.py index b0d18cf730..a216bb1535 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -106,7 +106,7 @@ def detect_rocprof(): global rocprof_cmd # rocprof info if not "ROCPROF" in os.environ.keys(): - rocprof_cmd = "rocprofv2" + rocprof_cmd = "rocprof" else: rocprof_cmd = os.environ["ROCPROF"] rocprof_path = shutil.which(rocprof_cmd) @@ -317,9 +317,9 @@ def detect_roofline(): logging.error("ROOFLINE ERROR: user-supplied path to binary not accessible") logging.error("--> ROOFLINE_BIN = %s\n" % target_binary) sys.exit(1) - elif rhel_distro == "platform:el8": + elif rhel_distro == "platform:el8" or rhel_distro == "platform:el9": # Must be a valid RHEL machine - distro = rhel_distro + distro = "platform:el8" elif ( (type(sles_distro) == str and len(sles_distro) >= 3) and # confirm string and len sles_distro[:2] == "15" and int(sles_distro[3]) >= 3 # SLES15 and SP >= 3