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

Change-Id: I88998cf57c21fc446fa28e250f826c607923670b
This commit is contained in:
kjayapra-amd
2024-01-25 18:25:36 -05:00
committed by Karthik Jayaprakash
parent a6841e3f43
commit 7d5b4a8f7a
4 changed files with 14 additions and 10 deletions
+3 -3
View File
@@ -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;