Display GPU brand name

Add support and testing for reading the brand name associated with
a specific GPU (such as mi25, mi50, mi60, etc). The brand name is
associated with the SKU of the GPU, and some brand names can be
mapped from multiple different SKUs.

Change-Id: I36eb95ca8e72efdd294ccd684841195925dfe820
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Tá an tiomantas seo le fáil i:
Ori Messinger
2019-08-19 11:26:27 -04:00
tuismitheoir aa2db48237
tiomantas 7f2d970a80
D'athraigh 3 comhad le 71 breiseanna agus 0 scriosta
+8
Féach ar an gComhad
@@ -119,6 +119,14 @@ void TestIdInfoRead::Run(void) {
std::cout << "\t**Device Marketing name: " << buffer << std::endl;
}
}
err = rsmi_dev_brand_get(i, buffer, kBufferLen);
if(err != RSMI_STATUS_SUCCESS) {
CHK_ERR_ASRT(err)
} else {
IF_VERB(STANDARD) {
std::cout << "\t**Device Brand name: " << buffer << std::endl;
}
}
err = rsmi_dev_vendor_id_get(i, &id);
if (err != RSMI_STATUS_SUCCESS) {
CHK_ERR_ASRT(err)