SWDEV-414833 - adding hipDeviceAttributeIsLargeBar
to hipDeviceGetAttribute
Change-Id: Icde0ab9326b1759c66f9a3acbadfb9a01cf6a5be
[ROCm/clr commit: 9008a53c98]
Этот коммит содержится в:
1 родитель
2d492a201b
Коммит
e9134ca616
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user