Skip to content

Commit fccc0eb

Browse files
committed
adding version info during run
1 parent 107fd46 commit fccc0eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nodescraper/plugins/inband/amdsmi/amdsmi_collector.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _get_amdsmi_version(self) -> Optional[AmdSmiVersion]:
261261
category=EventCategory.APPLICATION,
262262
description="Failed to read AMD SMI versions",
263263
data={"exception": get_exception_traceback(e)},
264-
priority=EventPriority.WARNING,
264+
priority=EventPriority.INFO,
265265
)
266266
return None
267267

@@ -1028,6 +1028,10 @@ def collect_data(
10281028
amdsmi = self._amdsmi_mod()
10291029
try:
10301030
amdsmi.amdsmi_init(amdsmi.AmdSmiInitFlags.INIT_AMD_GPUS) # type: ignore[attr-defined]
1031+
version = self._get_amdsmi_version()
1032+
if version is not None:
1033+
self.logger.info("amdsmi version: %s", version.version)
1034+
self.logger.info("ROCm version: %s", version.rocm_version)
10311035
amd_smi_data = self._get_amdsmi_data()
10321036

10331037
if amd_smi_data is None:

0 commit comments

Comments
 (0)