P4 to Git Change 1593119 by skudchad@skudchad_test2_win_opencl on 2018/08/13 16:53:08
SWDEV-145570 - [HIP] Output Kernel name and mem arguments passed with LOG_LEVEL=3 for PAL and ROCm backends ReviewBoardURL = http://ocltc.amd.com/reviews/r/15617/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#120 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#62 edit
Bu işleme şunda yer alıyor:
@@ -2167,6 +2167,9 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, const
|
||||
}
|
||||
}
|
||||
size_t ldsSize;
|
||||
|
||||
LogPrintfInfo("!\tShaderName : %s\n", hsaKernel.name().c_str());
|
||||
|
||||
// Check memory dependency and SVM objects
|
||||
if (!processMemObjectsHSA(kernel, parameters, nativeMem, ldsSize)) {
|
||||
LogError("Wrong memory objects!");
|
||||
@@ -3138,6 +3141,11 @@ bool VirtualGPU::processMemObjectsHSA(const amd::Kernel& kernel, const_address p
|
||||
|
||||
addVmMemory(gpuMem);
|
||||
|
||||
void* globalAddress = *(void**)(const_cast<address>(params) + desc.offset_);
|
||||
LogPrintfInfo("!\targ%d: %s %s = ptr:%p obj:[%p-%p]\n", index, desc.typeName_, desc.name_,
|
||||
globalAddress, (void*)gpuMem->vmAddress(),
|
||||
(void*)((intptr_t)gpuMem->vmAddress() + gpuMem->size()));
|
||||
|
||||
//! Check if compiler expects read/write.
|
||||
//! Note: SVM with subbuffers has an issue with tracking.
|
||||
//! Conformance can send read only subbuffer, but update the region
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle