P4 to Git Change 1598525 by gandryey@gera-ocl-lc on 2018/08/27 14:28:05

SWDEV-79445 - OCL generic changes and code clean-up
	- Setup KernelParameterDescriptor directly from the binary's metadata without any intermediate arguments presentation.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#312 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#122 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#66 edit
This commit is contained in:
foreman committed 2018-08-27 14:44:08 -04:00
1 parent e2bbfbe758
commit 4d46463948
5 files changed
+570 -736

No files matched your search

+7 -5
View File
@@ -332,11 +332,13 @@ bool VirtualGPU::processMemObjects(const amd::Kernel& kernel, const_address para
// Synchronize data with other memory instances if necessary
gpuMem->syncCacheFromHost(*this);
}
void* globalAddress = *(void**)(const_cast<address>(params) + desc.offset_);
LogPrintfInfo("!\targ%d: %s %s = ptr:%p obj:[%p-%p] threadId : %zx\n", index, desc.typeName_,
desc.name_, globalAddress, gpuMem->getDeviceMemory(),
(void*)((intptr_t)gpuMem->getDeviceMemory() + mem->getSize()),
std::this_thread::get_id());
const void* globalAddress = *reinterpret_cast<const void* const*>(params + desc.offset_);
LogPrintfInfo("!\targ%d: %s %s = ptr:%p obj:[%p-%p] threadId : %zx\n", index,
desc.typeName_.c_str(), desc.name_.c_str(),
globalAddress, gpuMem->getDeviceMemory(),
reinterpret_cast<address>(gpuMem->getDeviceMemory()) + mem->getSize(),
std::this_thread::get_id());
// Validate memory for a dependency in the queue
memoryDependency().validate(*this, gpuMem, (desc.info_.readOnly_ == 1));