Explicit page table update on all devices
HMM with xnack enabled should automatically update page tables, but currently it doesn't perform that. For now, runtime will force page table update on all devices unconditionally. Change-Id: Idfa6e1c145e6c114856214dce042b8a8349e5c58
This commit is contained in:
@@ -745,14 +745,6 @@ bool Buffer::create() {
|
||||
} else {
|
||||
deviceMemory_ = owner()->getSvmPtr();
|
||||
kind_ = MEMORY_KIND_PTRGIVEN;
|
||||
#if AMD_HMM_SUPPORT
|
||||
if (memFlags & CL_MEM_ALLOC_HOST_PTR) {
|
||||
// Currently HMM requires cirtain initial calls to mark sysmem allocation as
|
||||
// GPU accessible or prefetch memory into the current device
|
||||
// @note: Skip any allocaiton here, since sysmem was allocated on another device.
|
||||
dev().SvmAllocInit(deviceMemory_, size());
|
||||
}
|
||||
#endif // AMD_HMM_SUPPORT
|
||||
}
|
||||
|
||||
if ((deviceMemory_ != nullptr) && (dev().settings().apuSystem_ || !isFineGrain)) {
|
||||
|
||||
Reference in New Issue
Block a user