From cddc57bf085e35e8934184ee5ce4ebd0e53faa5f Mon Sep 17 00:00:00 2001 From: colramos-amd Date: Tue, 5 Dec 2023 13:06:44 -0600 Subject: [PATCH] Added missing hasattr checker Signed-off-by: colramos-amd --- src/omniperf_soc/soc_gfx90a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omniperf_soc/soc_gfx90a.py b/src/omniperf_soc/soc_gfx90a.py index 40346b4ce9..596a07d543 100644 --- a/src/omniperf_soc/soc_gfx90a.py +++ b/src/omniperf_soc/soc_gfx90a.py @@ -34,7 +34,7 @@ class gfx90a_soc (OmniSoC_Base): super().__init__(args) soc = "gfx90a" self.set_soc(soc) - if self.get_args().roof_only: + if hasattr(self.get_args(), 'roof_only') and self.get_args().roof_only: self.set_perfmon_dir(os.path.join(str(config.omniperf_home), "perfmon_configs", "roofline")) else: self.set_perfmon_dir(os.path.join(str(config.omniperf_home), "perfmon_configs", soc))