SWDEV-414833 - adding hipDeviceAttributeIsLargeBar

to hipDeviceGetAttribute

Change-Id: Icde0ab9326b1759c66f9a3acbadfb9a01cf6a5be
Цей коміт міститься в:
pghafari
2023-08-04 07:26:35 -04:00
зафіксовано Payam Ghafari
джерело fbea58ba11
коміт 9008a53c98
+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