Report managed memory capabilities

Change-Id: I241a42e26ee49fb47dcb3ba87c4bd8fb691dffdf
Bu işleme şunda yer alıyor:
German Andryeyev
2020-10-09 18:25:29 -04:00
ebeveyn 85715bc20f
işleme 15ba5611ba
4 değiştirilmiş dosya ile 48 ekleme ve 7 silme
+7
Dosyayı Görüntüle
@@ -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);
}