From e9134ca616ee098e88536efb3a3d7a3a83727b85 Mon Sep 17 00:00:00 2001 From: pghafari Date: Fri, 4 Aug 2023 07:26:35 -0400 Subject: [PATCH] SWDEV-414833 - adding hipDeviceAttributeIsLargeBar to hipDeviceGetAttribute Change-Id: Icde0ab9326b1759c66f9a3acbadfb9a01cf6a5be [ROCm/clr commit: 9008a53c98c04f57bb3656ef3f0fc61b35cdaf62] --- projects/clr/hipamd/src/hip_device_runtime.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index 6d18d9f4a7..f6ce98ad45 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -319,6 +319,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device) case hipDeviceAttributePageableMemoryAccessUsesHostPageTables: *pi = prop.pageableMemoryAccessUsesHostPageTables; break; + case hipDeviceAttributeIsLargeBar: + *pi = prop.isLargeBar; + break; case hipDeviceAttributeUnifiedAddressing: // HIP runtime always uses SVM for host memory allocations. // Note: Host registered memory isn't covered by this feature