P4 to Git Change 2020678 by gandryey@gera-win10 on 2019/10/28 18:06:48
SWDEV-79445 - OCL generic changes and code clean-up - Fix memory leaks in COMGR path. Make sure metadata_ object is properly destroyed in COMGR. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#28 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#66 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#34 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#84 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#53 edit
Este commit está contenido en:
@@ -160,11 +160,8 @@ bool LightningKernel::init() {
|
||||
}
|
||||
|
||||
// handle the printf metadata if any
|
||||
const amd_comgr_metadata_node_t* programMD = static_cast<const LightningProgram*>(program())->metadata();
|
||||
assert(programMD != nullptr);
|
||||
|
||||
std::vector<std::string> printfStr;
|
||||
if (!GetPrintfStr(*programMD, &printfStr)) {
|
||||
if (!GetPrintfStr(&printfStr)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user