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>

[ROCm/clr commit: 3bbc8bd170]
このコミットが含まれているのは:
Manocha, RahulとRahul Manocha authored and GitHub committed 2025-07-30 19:43:07 -07:00
1 親 f47693b755
コミット 86039381a2
1ファイル変更
+3
+3
ファイルの表示
@@ -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;