SWDEV-437832 - Changes to update host unified memory and iommuv2 flags.

Change-Id: I88998cf57c21fc446fa28e250f826c607923670b
Cette révision appartient à :
kjayapra-amd a créé et Karthik Jayaprakash a révisé 2024-02-07 06:27:47 -05:00
1 Parent a6841e3f43
révision 7d5b4a8f7a
4 fichiers modifiés
+14 -10

Aucun fichier ne correspond à votre recherche

+3 -3
Voir le fichier
@@ -401,8 +401,8 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) {
deviceProps.directManagedMemAccessFromHost = info.hmmDirectHostAccess_;
deviceProps.canUseHostPointerForRegisteredMem = info.hostUnifiedMemory_;
deviceProps.pageableMemoryAccess = info.hmmCpuMemoryAccessible_;
deviceProps.hostRegisterSupported = info.hostUnifiedMemory_;
deviceProps.pageableMemoryAccessUsesHostPageTables = info.hostUnifiedMemory_;
deviceProps.hostRegisterSupported = true;
deviceProps.pageableMemoryAccessUsesHostPageTables = info.iommuv2_;
// Mem pool
deviceProps.memoryPoolsSupported = HIP_MEM_POOL_SUPPORT;
@@ -467,7 +467,7 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) {
deviceProps.timelineSemaphoreInteropSupported = 0;
deviceProps.unifiedFunctionPointers = 0;
deviceProps.integrated = info.accelerator_;
deviceProps.integrated = info.hostUnifiedMemory_;
*props = deviceProps;
return hipSuccess;