P4 to Git Change 1094976 by yaxunl@yaxunl_stg_win50 on 2014/11/07 13:55:14
EPR #405357 - [CQE DTB][valgrind][OCL2.0]:MemLeaks are observed with MonteCarloAsian sample.
Need to delete amdrtFunctions when it is no longer used.
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#116 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/include/llvm/AMDLLVMContextHook.h#23 edit
[ROCm/clr commit: 1837e47b4a]
Bu işleme şunda yer alıyor:
@@ -799,6 +799,7 @@ amdcl::OCLLinker::link(llvm::Module* input, std::vector<llvm::Module*> &libs)
|
||||
|
||||
int ret = 0;
|
||||
if (Options()->oVariables->UseJIT) {
|
||||
delete hookup_.amdrtFunctions;
|
||||
hookup_.amdrtFunctions = amd::getAmdRtFunctions();
|
||||
} else {
|
||||
hookup_.amdrtFunctions = NULL;
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle