Support PCIe vendor name

Add the support for PCIe vendor name.

Change-Id: Ibc1d289a08731e4c5a14f992f3b0d31b51482396
This commit is contained in:
Bill(Shuzhou) Liu
2023-08-28 08:21:20 -05:00
vanhempi 14190c5a94
commit 9021ef96dc
12 muutettua tiedostoa jossa 161 lisäystä ja 16 poistoa
@@ -722,6 +722,11 @@ int main() {
CHK_RSMI_RET_I(ret)
std::cout << "\t**Dev.Rev.ID: 0x" << std::hex << val_ui16 << std::endl;
char pcie_vendor_name[256];
ret = rsmi_dev_pcie_vendor_name_get(i, pcie_vendor_name, 256);
CHK_RSMI_RET_I(ret)
std::cout << "\t**PCIe vendor name: " << pcie_vendor_name << std::endl;
char current_compute_partition[256];
current_compute_partition[0] = '\0';
ret = rsmi_dev_compute_partition_get(i, current_compute_partition, 256);