mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 18:37:46 +08:00
Add ClDeviceGlobalMemSizeAvailPercent debug flag
Related-To: NEO-5796 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ff8e8da8c3
commit
f861b29802
@@ -57,7 +57,8 @@ void Device::initializeCaps() {
|
||||
deviceInfo.maxMemAllocSize = getGlobalMemorySize(singleSubDeviceMask); // Allocation can be placed only on one SubDevice
|
||||
|
||||
if (DebugManager.flags.Force32bitAddressing.get() || addressing32bitAllowed || is32bit) {
|
||||
deviceInfo.globalMemSize = std::min(deviceInfo.globalMemSize, static_cast<uint64_t>(4 * GB * 0.8));
|
||||
double percentOfGlobalMemoryAvailable = getPercentOfGlobalMemoryAvailable();
|
||||
deviceInfo.globalMemSize = std::min(deviceInfo.globalMemSize, static_cast<uint64_t>(4 * GB * percentOfGlobalMemoryAvailable));
|
||||
deviceInfo.addressBits = 32;
|
||||
deviceInfo.force32BitAddressess = is64bit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user