Use clProgramWrapper in math_brute_force (#1451)

Simplify code by avoiding manual resource management.

This allows removing clReleaseProgram from `MakeKernels` to reduce
behavioral differences between `MakeKernels` and `MakeKernel`.

Original patch by Marco Antognini.

Signed-off-by: Marco Antognini <marco.antognini@arm.com>
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2022-07-28 13:33:16 +01:00
committed by GitHub
parent 2cf24e63b7
commit 0a5a8f90c9
28 changed files with 120 additions and 105 deletions

View File

@@ -1092,7 +1092,6 @@ int MakeKernels(const char **c, cl_uint count, const char *name,
clGetProgramBuildInfo(*p, gDevice, CL_PROGRAM_BUILD_LOG,
sizeof(buffer), buffer, NULL);
vlog_error("Log: %s\n", buffer);
clReleaseProgram(*p);
return error;
}
}