mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 15:39:03 +00:00
User create_* helper functions in most tests
Ported from master. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -53,12 +53,8 @@ int test_async_build(cl_device_id deviceID, cl_context context, cl_command_queue
|
||||
buildNotificationSent = 0;
|
||||
|
||||
/* First, test by doing the slow method of the individual calls */
|
||||
program = clCreateProgramWithSource( context, 1, sample_async_kernel, NULL, &error );
|
||||
if( program == NULL || error != CL_SUCCESS)
|
||||
{
|
||||
print_error( error, "Unable to create test program" );
|
||||
return -1;
|
||||
}
|
||||
error = create_single_kernel_helper_create_program(context, &program, 1, sample_async_kernel);
|
||||
test_error(error, "Unable to create program from source");
|
||||
|
||||
/* Compile the program */
|
||||
error = clBuildProgram( program, 1, &deviceID, NULL, test_notify_build_complete, (void *)"userData" );
|
||||
|
||||
Reference in New Issue
Block a user