P4 to Git Change 1605680 by gandryey@gera-ocl-lc on 2018/09/13 19:07:27
SWDEV-79445 - OCL generic changes and code clean-up - Fix test_basic progvar_prog_scope_uninit with LC. Detect global variables usage in the program and add the code object allocation to the memory dependency tracking Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#70 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#27 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#123 edit
Этот коммит содержится в:
1 родитель
55cf1727b2
Коммит
45fb4ac8f6
3 files changed
+52
-7
No files matched your search
@@ -3227,14 +3227,17 @@ bool VirtualGPU::processMemObjectsHSA(const amd::Kernel& kernel, const_address p
|
||||
dev().srds().fillResourceList(*this);
|
||||
}
|
||||
|
||||
addVmMemory(&hsaKernel.prog().codeSegGpu());
|
||||
|
||||
const static bool IsReadOnly = false;
|
||||
for (const pal::Memory* mem : hsaKernel.prog().globalStores()) {
|
||||
const static bool IsReadOnly = false;
|
||||
// Validate global store for a dependency in the queue
|
||||
memoryDependency().validate(*this, mem, IsReadOnly);
|
||||
addVmMemory(mem);
|
||||
}
|
||||
if (hsaKernel.prog().GlobalVariables()) {
|
||||
// Validate code object for a dependency in the queue
|
||||
memoryDependency().validate(*this, &hsaKernel.prog().codeSegGpu(), IsReadOnly);
|
||||
}
|
||||
addVmMemory(&hsaKernel.prog().codeSegGpu());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user