From 3bbc8bd1707468e53cf7c218c6e41f51337523d3 Mon Sep 17 00:00:00 2001 From: "Manocha, Rahul" Date: Wed, 30 Jul 2025 19:43:07 -0700 Subject: [PATCH] SWDEV-540733 - Add PCI CHIP ID device attribute (#647) SWDEV-540733 - Add PCI CHIP ID Device Attribute Co-authored-by: Rahul Manocha --- hipamd/src/hip_device_runtime.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hipamd/src/hip_device_runtime.cpp b/hipamd/src/hip_device_runtime.cpp index eb9e5dac43..6626e1672a 100644 --- a/hipamd/src/hip_device_runtime.cpp +++ b/hipamd/src/hip_device_runtime.cpp @@ -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(g_devices[device]->devices()[0]->info().pcieDeviceId_); + break; case hipDeviceAttributePersistingL2CacheMaxSize: *pi = prop.persistingL2CacheMaxSize; break;