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]
이 커밋은 다음에 포함됨:
cfallows-amd 작성하고 GitHub가 2025-05-16 12:54:53 -04:00를 커밋함
1 부모 5d03532296
커밋 72af81c528
5 파일이 변경됨
+15 -5

검색과 일치하는 파일 없음

+3 -1
파일 보기
@@ -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
파일 보기
@@ -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
파일 보기
@@ -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
파일 보기
@@ -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
파일 보기
@@ -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