mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-20 14:39:01 +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:
@@ -97,7 +97,8 @@ int test_options_build_optimizations(cl_device_id deviceID, cl_context context,
|
||||
|
||||
for(size_t i = 0; i < sizeof(optimization_options) / (sizeof(char*)); i++) {
|
||||
|
||||
clProgramWrapper program = clCreateProgramWithSource( context, 1, options_test_kernel, NULL, &error );
|
||||
clProgramWrapper program;
|
||||
error = create_single_kernel_helper_create_program(context, &program, 1, options_test_kernel, optimization_options[i]);
|
||||
if( program == NULL || error != CL_SUCCESS )
|
||||
{
|
||||
log_error( "ERROR: Unable to create reference program!\n" );
|
||||
|
||||
Reference in New Issue
Block a user