P4 to Git Change 1552596 by gandryey@gera-w8 on 2018/05/09 11:58:01

SWDEV-79445 - OCL generic changes and code clean-up
	- Disable deferred allocations for single device in order to disable validation code in the dispatch. Improves batch speed in the OCLPerfKernelArguments test upto 10% in some subtests

	http://ocltc.amd.com/reviews/r/14807/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#131 edit
This commit is contained in:
foreman
2018-05-09 12:20:05 -04:00
förälder 580cbe043f
incheckning 61d898a8a5
2 ändrade filer med 46 tillägg och 2 borttagningar
+1 -1
Visa fil
@@ -238,7 +238,7 @@ bool Memory::create(void* initFrom, bool sysMemAlloc) {
deviceMemories_[i].ref_ = devices[i];
deviceMemories_[i].value_ = NULL;
if (DISABLE_DEFERRED_ALLOC) {
if ((devices.size() == 1) || DISABLE_DEFERRED_ALLOC) {
device::Memory* mem = getDeviceMemory(*devices[i]);
if (NULL == mem) {
LogPrintfError("Can't allocate memory size - 0x%08X bytes!", getSize());