Check mode during soc init for roofline (#705)

Check mode before creating roofline object- skip if only printing specs

Signed-off-by: Carrie Fallows <Carrie.Fallows@amd.com>
This commit is contained in:
cfallows-amd authored and GitHub committed 2025-05-16 12:54:53 -04:00
1 parent 7b755fcd86
commit 43dbf38b27
5 files changed
+15 -5

No files matched your search

+3 -1
View File
@@ -64,7 +64,9 @@ class gfx90a_soc(OmniSoC_Base):
"GDS": 4,
}
)
self.roofline_obj = Roofline(args, self._mspec)
# Create roofline object if mode is provided; skip for --specs
if hasattr(self.get_args(), "mode") and self.get_args().mode:
self.roofline_obj = Roofline(args, self._mspec)
# Set arch specific specs
self._mspec._l2_banks = 32
+3 -1
View File
@@ -64,7 +64,9 @@ class gfx940_soc(OmniSoC_Base):
"GDS": 4,
}
)
self.roofline_obj = Roofline(args, self._mspec)
# Create roofline object if mode is provided; skip for --specs
if hasattr(self.get_args(), "mode") and self.get_args().mode:
self.roofline_obj = Roofline(args, self._mspec)
# Set arch specific specs
self._mspec._l2_banks = 16
+3 -1
View File
@@ -64,7 +64,9 @@ class gfx941_soc(OmniSoC_Base):
"GDS": 4,
}
)
self.roofline_obj = Roofline(args, self._mspec)
# Create roofline object if mode is provided; skip for --specs
if hasattr(self.get_args(), "mode") and self.get_args().mode:
self.roofline_obj = Roofline(args, self._mspec)
# Set arch specific specs
self._mspec._l2_banks = 16
+3 -1
View File
@@ -64,7 +64,9 @@ class gfx942_soc(OmniSoC_Base):
"GDS": 4,
}
)
self.roofline_obj = Roofline(args, self._mspec)
# Create roofline object if mode is provided; skip for --specs
if hasattr(self.get_args(), "mode") and self.get_args().mode:
self.roofline_obj = Roofline(args, self._mspec)
# Set arch specific specs
self._mspec._l2_banks = 16
+3 -1
View File
@@ -63,7 +63,9 @@ class gfx950_soc(OmniSoC_Base):
"TCC_channels": 16,
}
)
self.roofline_obj = Roofline(args, self._mspec)
# Create roofline object if mode is provided; skip for --specs
if hasattr(self.get_args(), "mode") and self.get_args().mode:
self.roofline_obj = Roofline(args, self._mspec)
# Set arch specific specs
self._mspec._l2_banks = 16