mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
feature: Set shared system USM madvise preferred location as prefetch region
Resolves: NEO-16482 Signed-off-by: Falkowski, John <john.falkowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
20e4655499
commit
cfa007e551
@@ -372,7 +372,7 @@ bool DrmMemoryManager::prefetchSharedSystemAlloc(const void *ptr, const size_t s
|
||||
auto memoryClassDevice = ioctlHelper->getDrmParamValue(DrmParam::memoryClassDevice);
|
||||
auto region = static_cast<uint32_t>((memoryClassDevice << 16u) | subDeviceIds[0]);
|
||||
auto vmId = drm.getVirtualMemoryAddressSpace(subDeviceIds[0]);
|
||||
return ioctlHelper->setVmPrefetch(reinterpret_cast<uint64_t>(ptr), size, region, vmId);
|
||||
return ioctlHelper->setVmSharedSystemMemPrefetch(reinterpret_cast<uint64_t>(ptr), size, region, vmId);
|
||||
}
|
||||
|
||||
bool DrmMemoryManager::setMemPrefetch(GraphicsAllocation *gfxAllocation, SubDeviceIdsVec &subDeviceIds, uint32_t rootDeviceIndex) {
|
||||
|
||||
Reference in New Issue
Block a user