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
[ROCm/clr commit: 61d898a8a5]
This commit is contained in:
1 parent
6e0bda46cf
commit
8dd3fe48d3
2 files changed
+46
-2
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user