Initial HMM support

- Expose ROCclr interfaces for HIP usage
- ROCr interfaces aren't available in staging, thus control the
build with AMD_HMM_SUPPORT define

Change-Id: Iadc2bcc230e78d3b0dc22b235189c8cc80843446
This commit is contained in:
German Andryeyev
2020-06-11 14:26:15 -04:00
والد da1f5bfb94
کامیت c5afd5d412
12فایلهای تغییر یافته به همراه368 افزوده شده و 16 حذف شده
+9 -1
مشاهده پرونده
@@ -203,7 +203,6 @@ bool Event::awaitCompletion() {
lock_.wait();
}
}
ClPrint(LOG_DEBUG, LOG_WAIT, "event %p wait completed", this);
}
@@ -633,4 +632,13 @@ bool CopyMemoryP2PCommand::validateMemory() {
return true;
}
// ================================================================================================
bool SvmPrefetchAsyncCommand::validateMemory() {
amd::Memory* svmMem = svmMem = amd::MemObjMap::FindMemObj(dev_ptr());
if (nullptr == svmMem) {
LogPrintfError("SvmPrefetchAsync received unknown memory for prefetch: %p!", dev_ptr());
return false;
}
}
} // namespace amd