Report managed memory capabilities

Change-Id: I241a42e26ee49fb47dcb3ba87c4bd8fb691dffdf
이 커밋은 다음에 포함됨:
German Andryeyev가 2020-10-13 16:09:43 -04:00를 커밋했습니다
1 부모 bdcd4143de
커밋 d9f655f50e
4 파일이 변경됨
+48 -7

검색과 일치하는 파일 없음

+7
파일 보기
@@ -226,6 +226,13 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
deviceProps.isLargeBar = info.largeBar_ ? 1 : 0;
deviceProps.asicRevision = info.asicRevision_;
// HMM capabilities
deviceProps.managedMemory = info.hmmSupported_;
deviceProps.concurrentManagedAccess = info.hmmSupported_;
deviceProps.directManagedMemAccessFromHost = info.hmmDirectHostAccess_;
deviceProps.pageableMemoryAccess = info.hmmCpuMemoryAccessible_;
deviceProps.pageableMemoryAccessUsesHostPageTables = info.hostUnifiedMemory_;
*props = deviceProps;
HIP_RETURN(hipSuccess);
}