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:
Szymon Morek
2025-09-05 13:54:01 +00:00
committed by Compute-Runtime-Automation
parent 71a9731620
commit 03357b6089
7 changed files with 9 additions and 14 deletions

View File

@@ -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;
}