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]
Ta zmiana jest zawarta w:
%! (template.HTML=foreman)złożyło 2014-11-07 14:08:41 -05:00
1 rodzic 6c9b78aeac
złożenie e6c7681bf5
Plik 1 zmieniony
+1
@@ -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;