Move error logging to util.py
Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
committed by
Karl W. Schulz
parent
eaae69e2a6
commit
b99d448d3b
@@ -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()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user