P4 to Git Change 2024527 by gandryey@gera-win10 on 2019/11/04 16:11:31
SWDEV-209969 - SQTT missing event instrumenting token in OpenCL trace - SQTT trace reports memory clears if program load occurs during the capture. Avoid memory clears with GPU if CPU backing store is available Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#100 edit
This commit is contained in:
@@ -99,7 +99,8 @@ bool Segment::alloc(HSAILProgram& prog, amdgpu_hsa_elf_segment_t segment, size_t
|
||||
}
|
||||
}
|
||||
|
||||
if (zero && !prog.isInternal()) {
|
||||
// Don't clear GPU memory if CPU backing store is available
|
||||
if ((cpuAccess_ == nullptr) && zero && !prog.isInternal()) {
|
||||
uint64_t pattern = 0;
|
||||
size_t patternSize = ((size % sizeof(pattern)) == 0) ? sizeof(pattern) : 1;
|
||||
prog.dev().xferMgr().fillBuffer(*gpuAccess_, &pattern, patternSize, amd::Coord3D(0),
|
||||
|
||||
Reference in New Issue
Block a user