P4 to Git Change 1321686 by emankov@em-hsa-amd on 2016/10/03 06:43:39
SWDEV-103207 - FIX: clCreateProgramWithBinary memory leak - REGRESSION
Leaks were in Runtime in functions Program::addDeviceProgram and Program::link.
[Testing] http://ocltc.amd.com:8111/viewModification.html?modId=77100&personal=true&init=1&tab=vcsModificationBuilds&show_all_builds=true
[Reviewer] Stanislav Mekhanoshin
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#84 edit
[ROCm/clr commit: 109eabeca3]
Este cometimento está contido em:
@@ -102,6 +102,7 @@ Program::addDeviceProgram(Device& device, const void* image, size_t length,
|
||||
}
|
||||
}
|
||||
options->oVariables->Legacy = isAMDILTarget(*aclutGetTargetInfo(binary));
|
||||
aclBinaryFini(binary);
|
||||
}
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
options->oVariables->BinaryIsSpirv = isSPIRV_;
|
||||
@@ -332,6 +333,7 @@ Program::link(
|
||||
} else if (isAMDILTarget(*aclutGetTargetInfo(aclBin))) {
|
||||
parsedOptions.oVariables->Frontend = "edg";
|
||||
}
|
||||
aclBinaryFini(aclBin);
|
||||
}
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
found = true;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador