mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Using helper functions for clCreateKernel (#1064)
* Using helper functions for clCreateKernel Uses of clCreateKernel following create program helper functions, have been incorporated into create_single_kernel_helper when suitable. Contributes #31 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> * Skip tests using clCompileProgram in offline mode Contributes #31 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> * Using type wrappers when using kernel helper functions Also includes fix for windows build Fixes #31 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> * Remove clReleaseKernel for wrapped kernel Fixes #31 Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
This commit is contained in:
@@ -157,14 +157,13 @@ int test_null_buffer_arg(cl_device_id device, cl_context context,
|
||||
|
||||
// prep kernel:
|
||||
if (gIsEmbedded)
|
||||
status = create_single_kernel_helper(context, &program, NULL, 1, &kernel_string, NULL);
|
||||
status = create_single_kernel_helper(context, &program, &kernel, 1,
|
||||
&kernel_string, "test_kernel");
|
||||
else
|
||||
status = create_single_kernel_helper(context, &program, NULL, 1, &kernel_string_long, NULL);
|
||||
status = create_single_kernel_helper(
|
||||
context, &program, &kernel, 1, &kernel_string_long, "test_kernel");
|
||||
|
||||
test_error(status, "Unable to build test program");
|
||||
|
||||
kernel = clCreateKernel(program, "test_kernel", &status);
|
||||
test_error(status, "CreateKernel failed.");
|
||||
test_error(status, "Unable to create kernel");
|
||||
|
||||
cl_mem dev_src = clCreateBuffer(context, CL_MEM_READ_ONLY, NITEMS*sizeof(cl_float),
|
||||
NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user