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))