[SWDEV-481004] Fix for incorrect gfx_version number (#8)

The target_graphics_version was not formatted properly and was
showing incorrect Target Name. Corrected this by fomatting
major, minor and revision numbers.

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>

[ROCm/rocm_smi_lib commit: 6337f7b05b]
이 커밋은 다음에 포함됨:
Kanangot Balakrishnan, Bindhiya 작성하고 Charis Poag가 2025-03-09 14:23:22 -05:00를 커밋함
1 부모 6af7a0590d
커밋 7bbbaeb020
4 파일이 변경됨
+10 -9

검색과 일치하는 파일 없음

+1 -4
파일 보기
@@ -397,11 +397,8 @@ def getTargetGfxVersion(device, silent=False):
target_graphics_version = c_uint64()
gfx_ver_ret = "N/A"
ret = rocmsmi.rsmi_dev_target_graphics_version_get(device, byref(target_graphics_version))
target_graphics_version = str(target_graphics_version.value)
target_graphics_version = hex(target_graphics_version.value)[2:]
if rsmi_ret_ok(ret, device, 'get_target_gfx_version', silent=silent):
if target_graphics_version == "9010":
hex_part = str(hex(int(str(target_graphics_version)[2:]))).replace("0x", "")
target_graphics_version = str(target_graphics_version)[:2] + hex_part
gfx_ver_ret = "gfx" + str(target_graphics_version)
return gfx_ver_ret