Ori Messinger 621a2c76da ROCm SMI CLI: Fix --showproductname bugs
This patch fixes a couple of --showproductname bugs, both of which
are related to the device's SKU.
Previously if a device with a non-standard VBIOS name was used,
fetching that device's SKU wasn't working correctly.

A standard VBIOS name should follow the following pattern:
AAA-BBBBBB-CCC
Where the middle section "BBBBBB" between the hypens is the SKU.

Now, SKU can be correctly fetched even with a non-standard VBIOS
name, and return 'unkown' if SKU does not exist.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I5899a859c6131c6048bb31a4305ddacbac3075a9


[ROCm/rocm_smi_lib commit: 5c478e9eb9]
2023-01-05 11:53:04 -05:00
S
描述
无详细信息
283 MiB
0 点赞数 2 关注者 0 派生仓库
语言
C++ 67.5%
C 20.6%
Python 6.6%
CMake 3.4%
Shell 0.6%
其它 1.1%