P4 to Git Change 1201608 by emankov@em-hsa-amd on 2015/10/20 14:12:09
SWDEV-79234 - ORCA RT: Fix memory leak in Program::addDeviceProgram() on redundant call of createProgram()
[Synopsis]
Leak has been observed since CL 1191713:
ECR #304775 - Remove EG/NI support - Remove devProgramsNoOpt_ field
[Testing] pre check-in
http://ocltc.amd.com:8111/viewModification.html?modId=60549&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true
[Reviewer] German Andryeyev
http://ocltc.amd.com/reviews/r/8741/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#72 edit
[ROCm/clr commit: cf9c762159]
This commit is contained in:
@@ -93,11 +93,6 @@ Program::addDeviceProgram(Device& device, const void* image, size_t length,
|
||||
|
||||
devicePrograms_[&rootDev] = program;
|
||||
|
||||
program = rootDev.createProgram(hsail);
|
||||
if (program == NULL) {
|
||||
return CL_OUT_OF_HOST_MEMORY;
|
||||
}
|
||||
|
||||
deviceList_.insert(&device);
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user