mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Create kmd migrated allocation with initial placement
Implements ZE_HOST_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT for zeMemAllocShared with KMD migrated allocation. Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fc71a59504
commit
2be98a1e62
@@ -49,7 +49,7 @@ void MemoryInfo::assignRegionsFromDistances(const std::vector<DistanceInfo> &dis
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t MemoryInfo::createGemExt(Drm *drm, const std::vector<MemoryClassInstance> &memClassInstances, size_t allocSize, uint32_t &handle) {
|
||||
uint32_t MemoryInfo::createGemExt(Drm *drm, const MemRegionsVec &memClassInstances, size_t allocSize, uint32_t &handle) {
|
||||
return drm->getIoctlHelper()->createGemExt(drm, memClassInstances, allocSize, handle);
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ void MemoryInfo::printRegionSizes() {
|
||||
uint32_t MemoryInfo::createGemExtWithSingleRegion(Drm *drm, uint32_t memoryBanks, size_t allocSize, uint32_t &handle) {
|
||||
auto pHwInfo = drm->getRootDeviceEnvironment().getHardwareInfo();
|
||||
auto regionClassAndInstance = getMemoryRegionClassAndInstance(memoryBanks, *pHwInfo);
|
||||
std::vector<MemoryClassInstance> region = {regionClassAndInstance};
|
||||
MemRegionsVec region = {regionClassAndInstance};
|
||||
auto ret = createGemExt(drm, region, allocSize, handle);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user