Display GPU vram vendor
Add support and testing for reading the vram vendor associated with the GPU. The vram vendor can be found as a separate sysfs file at: /sys/class/drm/card[X]/device/mem_info_vram_vendor The vram vendor is displayed as a string value. Change-Id: I12c8e56e57f45aa08d7d6c25338c4e468ed1c7fc Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Ta zmiana jest zawarta w:
%! (template.HTML=
Ori Messinger)złożyło 2019-10-04 11:51:30 -04:00
1 rodzic
551b15182b
złożenie
2412dff6a2
5 plików zmienionych
+70
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -127,6 +127,17 @@ void TestIdInfoRead::Run(void) {
|
||||
std::cout << "\t**Device Brand name: " << buffer << std::endl;
|
||||
}
|
||||
}
|
||||
err = rsmi_dev_vram_vendor_get(i, buffer, kBufferLen);
|
||||
if (err == RSMI_STATUS_NOT_SUPPORTED) {
|
||||
std::cout <<
|
||||
"\t**Vram Vendor string not supported on this system." << std::endl;
|
||||
} else if (err != RSMI_STATUS_SUCCESS) {
|
||||
CHK_ERR_ASRT(err)
|
||||
} else {
|
||||
IF_VERB(STANDARD) {
|
||||
std::cout << "\t**Device Vram Vendor name: " << buffer << std::endl;
|
||||
}
|
||||
}
|
||||
err = rsmi_dev_vendor_id_get(i, &id);
|
||||
if (err != RSMI_STATUS_SUCCESS) {
|
||||
CHK_ERR_ASRT(err)
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika