mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:41:26 +08:00
performance: adjust size threshold for staging on linux
Related-To: NEO-15973 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
71a9731620
commit
03357b6089
@@ -407,9 +407,8 @@ bool StagingBufferManager::isValidForStaging(const Device &device, const void *p
|
||||
if (debugManager.flags.EnableCopyWithStagingBuffers.get() != -1) {
|
||||
stagingCopyEnabled = debugManager.flags.EnableCopyWithStagingBuffers.get();
|
||||
}
|
||||
auto isIntegrated = device.getRootDeviceEnvironment().getHardwareInfo()->capabilityTable.isIntegratedDevice;
|
||||
auto osInterface = device.getRootDeviceEnvironment().osInterface.get();
|
||||
bool sizeWithinThreshold = osInterface ? osInterface->isSizeWithinThresholdForStaging(size, isIntegrated) : true;
|
||||
bool sizeWithinThreshold = osInterface ? osInterface->isSizeWithinThresholdForStaging(size) : true;
|
||||
auto detectedHostPtr = this->registerHostPtr(ptr);
|
||||
return stagingCopyEnabled && !hasDependencies && !detectedHostPtr && sizeWithinThreshold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user