SWDEV-540733 - Add PCI CHIP ID device attribute (#647)

SWDEV-540733 - Add PCI CHIP ID Device Attribute

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
This commit is contained in:
Manocha, Rahul
2025-07-30 19:43:07 -07:00
committed by GitHub
parent 2c6ec7df45
commit 3bbc8bd170
+3
View File
@@ -287,6 +287,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
case hipDeviceAttributePciDomainId:
*pi = prop.pciDomainID;
break;
case hipDeviceAttributePciChipId:
*pi = static_cast<int>(g_devices[device]->devices()[0]->info().pcieDeviceId_);
break;
case hipDeviceAttributePersistingL2CacheMaxSize:
*pi = prop.persistingL2CacheMaxSize;
break;