P4 to Git Change 1084962 by gandryey@gera-dev-w7 on 2014/10/07 14:25:46

ECR #304775 - Remove GPU_PREALLOC_ADDR_SPACE key
	- Previously the key was used for 64bit ISA testing on boards with <4GB frame buffer

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#114 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#467 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#289 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#88 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#215 edit
Dieser Commit ist enthalten in:
foreman
2014-10-07 14:36:41 -04:00
Ursprung 99fdc9adbb
Commit e706ca4c91
5 geänderte Dateien mit 1 neuen und 21 gelöschten Zeilen
-11
Datei anzeigen
@@ -520,14 +520,6 @@ void Device::fillDeviceInfo(
info_.globalMemSize_ +=
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi) / 2;
}
// Check if runtime has to reserve address space for testing
if (settings().use64BitPtr_ && settings().preallocAddrSpace_ &&
(info_.globalMemSize_ > ReservedAdressSpaceSize)) {
info_.globalMemSize_ -= ReservedAdressSpaceSize;
}
else {
reinterpret_cast<gpu::Settings*>(settings_)->preallocAddrSpace_ = false;
}
// We try to calculate the largest available memory size from
// the largest available block in either heap. In theory this
@@ -954,9 +946,6 @@ Device::initializeHeapResources()
}
size_t dummySize = amd::Os::pageSize();
if (heap()->isVirtual() && settings().preallocAddrSpace_) {
dummySize = static_cast<size_t>(ReservedAdressSpaceSize - Mi);
}
// Allocate a dummy page for NULL pointer processing
dummyPage_ = new(*context_) amd::Buffer(*context_, 0, dummySize);