Move error logging to util.py

Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
colramos-amd
2023-12-11 09:55:15 -06:00
committed by Karl W. Schulz
parent eaae69e2a6
commit b99d448d3b
8 changed files with 33 additions and 49 deletions
+2 -2
View File
@@ -25,7 +25,7 @@
import os
import config
from omniperf_soc.soc_base import OmniSoC_Base
from utils.utils import demarcate
from utils.utils import demarcate, error
class gfx906_soc (OmniSoC_Base):
def __init__(self,args):
@@ -72,7 +72,7 @@ class gfx906_soc (OmniSoC_Base):
"""
super().profiling_setup()
if self.get_args().roof_only:
self.error("%s does not support roofline analysis" % self.get_soc())
error("%s does not support roofline analysis" % self.get_soc())
# Perfmon filtering
self.perfmon_filter()
+2 -2
View File
@@ -25,7 +25,7 @@
import os
import config
from omniperf_soc.soc_base import OmniSoC_Base
from utils.utils import demarcate
from utils.utils import demarcate, error
class gfx908_soc (OmniSoC_Base):
def __init__(self,args):
@@ -73,7 +73,7 @@ class gfx908_soc (OmniSoC_Base):
"""
super().profiling_setup()
if self.get_args().roof_only:
self.error("%s does not support roofline analysis" % self.get_soc())
error("%s does not support roofline analysis" % self.get_soc())
# Perfmon filtering
self.perfmon_filter(self.get_args().roof_only)