P4 to Git Change 1282811 by gandryey@gera-w8 on 2016/06/22 12:06:40
SWDEV-91794 - Memory leak when looping BuildProgram - Release binary raw inside runtime and compiler library Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#43 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/bifbase.cpp#57 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpucompiler.cpp#155 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#227 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#68 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#8 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#6 edit
This commit is contained in:
@@ -447,15 +447,10 @@ HSAILProgram::compileImpl(
|
||||
}
|
||||
|
||||
clBinary()->storeCompileOptions(compileOptions_);
|
||||
// Save the binary in the interface class
|
||||
size_t size = 0;
|
||||
void* mem = NULL;
|
||||
aclWriteToMem(binaryElf_, &mem, &size);
|
||||
setBinary(static_cast<char*>(mem), size);
|
||||
|
||||
// Save the binary inside the program
|
||||
// The FSAILProgram will be responsible to free it during destruction
|
||||
rawBinary_ = mem;
|
||||
// Save the binary in the interface class
|
||||
saveBinaryAndSetType(TYPE_COMPILED);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user