mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 00:09:02 +00:00
Fix error handling in create_single_kernel_helper()
This commit is contained in:
committed by
Kévin Petit
parent
ccadaf3c1d
commit
979405d84d
@@ -499,14 +499,8 @@ int create_single_kernel_helper_with_build_options(cl_context context,
|
|||||||
|
|
||||||
int create_single_kernel_helper(cl_context context, cl_program *outProgram, cl_kernel *outKernel, unsigned int numKernelLines, const char **kernelProgram, const char *kernelName, const char *buildOptions)
|
int create_single_kernel_helper(cl_context context, cl_program *outProgram, cl_kernel *outKernel, unsigned int numKernelLines, const char **kernelProgram, const char *kernelName, const char *buildOptions)
|
||||||
{
|
{
|
||||||
int error = CL_SUCCESS;
|
int error = create_single_kernel_helper_create_program(context, outProgram, numKernelLines, kernelProgram, buildOptions);
|
||||||
|
test_error(error, "Create program failed");
|
||||||
create_single_kernel_helper_create_program(context, outProgram, numKernelLines, kernelProgram, buildOptions);
|
|
||||||
if (error != CL_SUCCESS)
|
|
||||||
{
|
|
||||||
log_error("Create program failed");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Compile the program */
|
/* Compile the program */
|
||||||
int buildProgramFailed = 0;
|
int buildProgramFailed = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user