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:
@@ -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
|
||||
|
||||
مرجع در شماره جدید
Block a user