mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
performance: enable staging write for cl buffers
Related-To: NEO-13529 Also, add size threshold on iGPU on Linux, and disable staging if imported host ptr could be reused Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
35d8e82664
commit
b11322332c
@@ -58,6 +58,13 @@ bool initDrmOsInterface(std::unique_ptr<HwDeviceId> &&hwDeviceId, uint32_t rootD
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OSInterface::isSizeWithinThresholdForStaging(size_t size, bool isIGPU) const {
|
||||
if (isIGPU) {
|
||||
return size < 512 * MemoryConstants::megaByte;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t OSInterface::getAggregatedProcessCount() const {
|
||||
if (driverModel && driverModel->getDriverModelType() == DriverModelType::drm) {
|
||||
return driverModel->as<Drm>()->getAggregatedProcessCount();
|
||||
|
||||
Reference in New Issue
Block a user