mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: remove ftrSvm variable
- it is true on all platforms. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
04990d90f7
commit
afdc04975f
@@ -296,20 +296,16 @@ bool Context::createImpl(const cl_context_properties *properties,
|
||||
memoryManager->getDeferredDeleter()->addClient();
|
||||
}
|
||||
|
||||
bool anySvmSupport = false;
|
||||
for (auto &device : devices) {
|
||||
device->incRefInternal();
|
||||
anySvmSupport |= device->getHardwareInfo().capabilityTable.ftrSvm;
|
||||
}
|
||||
|
||||
setupContextType();
|
||||
if (anySvmSupport) {
|
||||
this->svmAllocsManager = new SVMAllocsManager(this->memoryManager,
|
||||
this->areMultiStorageAllocationsPreferred());
|
||||
this->svmAllocsManager->initUsmAllocationsCaches(device->getDevice());
|
||||
auto requiresWritableStaging = device->getDefaultEngine().commandStreamReceiver->getType() != CommandStreamReceiverType::hardware;
|
||||
this->stagingBufferManager = std::make_unique<StagingBufferManager>(svmAllocsManager, rootDeviceIndices, deviceBitfields, requiresWritableStaging);
|
||||
}
|
||||
this->svmAllocsManager = new SVMAllocsManager(this->memoryManager,
|
||||
this->areMultiStorageAllocationsPreferred());
|
||||
this->svmAllocsManager->initUsmAllocationsCaches(device->getDevice());
|
||||
auto requiresWritableStaging = device->getDefaultEngine().commandStreamReceiver->getType() != CommandStreamReceiverType::hardware;
|
||||
this->stagingBufferManager = std::make_unique<StagingBufferManager>(svmAllocsManager, rootDeviceIndices, deviceBitfields, requiresWritableStaging);
|
||||
|
||||
smallBufferPoolAllocator.setParams(SmallBuffersParams::getPreferredBufferPoolParams(device->getProductHelper()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user