mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Changing sysmem allocation logic for WSL
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
73b0df3211
commit
1fa74b9b3c
@@ -78,6 +78,13 @@ void Device::initializeCaps() {
|
||||
deviceInfo.maxMemAllocSize = std::min(deviceInfo.maxMemAllocSize, this->hardwareCapabilities.maxMemAllocSize);
|
||||
}
|
||||
|
||||
// Some specific driver model configurations may impose additional limitations
|
||||
auto driverModelMaxMemAlloc = std::numeric_limits<size_t>::max();
|
||||
if (this->executionEnvironment->rootDeviceEnvironments[0]->osInterface) {
|
||||
driverModelMaxMemAlloc = this->executionEnvironment->rootDeviceEnvironments[0]->osInterface->getDriverModel()->getMaxMemAllocSize();
|
||||
}
|
||||
deviceInfo.maxMemAllocSize = std::min<std::uint64_t>(driverModelMaxMemAlloc, deviceInfo.maxMemAllocSize);
|
||||
|
||||
deviceInfo.profilingTimerResolution = getProfilingTimerResolution();
|
||||
if (DebugManager.flags.OverrideProfilingTimerResolution.get() != -1) {
|
||||
deviceInfo.profilingTimerResolution = static_cast<double>(DebugManager.flags.OverrideProfilingTimerResolution.get());
|
||||
|
||||
Reference in New Issue
Block a user