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>

[ROCm/rocprofiler-compute commit: 43dbf38b27]
This commit is contained in:
cfallows-amd
2025-05-16 12:54:53 -04:00
کامیت شده توسط GitHub
والد 5d03532296
کامیت 72af81c528
5فایلهای تغییر یافته به همراه15 افزوده شده و 5 حذف شده
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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