• Home
  • Raw
  • Download

Lines Matching full:program

163     cl_program program;  in test_large_single_compile()  local
189 /* Try to create a program with these lines */ in test_large_single_compile()
190 error = create_single_kernel_helper_create_program(context, &program, numLines, lines); in test_large_single_compile()
191 if( program == NULL || error != CL_SUCCESS ) in test_large_single_compile()
193 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)", numLines, IGe… in test_large_single_compile()
195 if (program != NULL) in test_large_single_compile()
197 error = clReleaseProgram( program ); in test_large_single_compile()
198 test_error( error, "Unable to release a program object" ); in test_large_single_compile()
204 error = clBuildProgram( program, 1, &deviceID, NULL, NULL, NULL ); in test_large_single_compile()
205 test_error( error, "Unable to build a long program" ); in test_large_single_compile()
208 error = clReleaseProgram( program ); in test_large_single_compile()
209 test_error( error, "Unable to release a program object" ); in test_large_single_compile()
236 …log_error( "ERROR: long program test failed for %d lines! (in %s:%d)\n", toTest[ i ], __FILE__, __… in test_large_compile()
261 cl_program program; in test_large_multi_file_library() local
296 /* Try to create a program with these lines */ in test_large_multi_file_library()
297 error = create_single_kernel_helper_create_program(context, &program, 2 * numLines + 2, lines); in test_large_multi_file_library()
298 if( program == NULL || error != CL_SUCCESS ) in test_large_multi_file_library()
300 …log_error( "ERROR: Unable to create long test program with %d lines! (%s) (in %s:%d)\n", numLines,… in test_large_multi_file_library()
308 if (program != NULL) in test_large_multi_file_library()
310 error = clReleaseProgram( program ); in test_large_multi_file_library()
311 test_error( error, "Unable to release program object" ); in test_large_multi_file_library()
318 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_large_multi_file_library()
319 test_error( error, "Unable to compile a simple program" ); in test_large_multi_file_library()
329 …log_error( "ERROR: Unable to create long test program with %d lines! (%s) (in %s:%d)\n", numLines,… in test_large_multi_file_library()
335 test_error( error, "Unable to compile a simple program" ); in test_large_multi_file_library()
344 /* Link the program that calls the kernels and the library that contains them */ in test_large_multi_file_library()
345 cl_program programs[2] = { program, my_newly_minted_library }; in test_large_multi_file_library()
347 test_error( error, "Unable to link a program with a library" ); in test_large_multi_file_library()
359 error = clReleaseProgram( program ); in test_large_multi_file_library()
360 test_error( error, "Unable to release program object" ); in test_large_multi_file_library()
372 test_error( error, "Unable to release program object" ); in test_large_multi_file_library()
380 test_error( error, "Unable to release program object" ); in test_large_multi_file_library()
383 test_error( error, "Unable to release program object" ); in test_large_multi_file_library()
408 …log_error( "ERROR: multi-file library program test failed for %d lines! (in %s:%d)\n\n", toTest[ i… in test_multi_file_libraries()
427 cl_program program; in test_large_multiple_embedded_headers() local
469 …log_error( "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", IGetErrorString( er… in test_large_multiple_embedded_headers()
484 /* Try to create a program with these lines */ in test_large_multiple_embedded_headers()
485 error = create_single_kernel_helper_create_program(context, &program, 2 * numLines + 2, lines); in test_large_multiple_embedded_headers()
486 if( program == NULL || error != CL_SUCCESS ) in test_large_multiple_embedded_headers()
488 …log_error( "ERROR: Unable to create long test program with %d lines! (%s) (in %s:%d)\n", numLines,… in test_large_multiple_embedded_headers()
493 …error = clCompileProgram(program, 1, &deviceID, NULL, numLines, headers, header_names, NULL, NULL); in test_large_multiple_embedded_headers()
494 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_embedded_headers()
504 …log_error( "ERROR: Unable to create long test program with %d lines! (%s) (in %s:%d)\n", numLines,… in test_large_multiple_embedded_headers()
510 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_embedded_headers()
519 /* Link the program that calls the kernels and the library that contains them */ in test_large_multiple_embedded_headers()
520 cl_program programs[2] = { program, my_newly_minted_library }; in test_large_multiple_embedded_headers()
522 test_error( error, "Unable to link a program with a library" ); in test_large_multiple_embedded_headers()
534 error = clReleaseProgram( program ); in test_large_multiple_embedded_headers()
535 test_error( error, "Unable to release program object" ); in test_large_multiple_embedded_headers()
552 test_error( error, "Unable to release program object" ); in test_large_multiple_embedded_headers()
554 test_error( error, "Unable to release header program object" ); in test_large_multiple_embedded_headers()
563 test_error( error, "Unable to release program object" ); in test_large_multiple_embedded_headers()
566 test_error( error, "Unable to release program object" ); in test_large_multiple_embedded_headers()
591 …log_error( "ERROR: multiple embedded headers program test failed for %d lines! (in %s:%d)\n", toTe… in test_multiple_embedded_headers()
625 …log_error( "ERROR: Unable to allocate program array with %d programs! (in %s:%d)\n", (1+numLibrari… in test_large_multiple_libraries()
659 /* Try to create a program with these lines */ in test_large_multiple_libraries()
663 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)\n", numLines, I… in test_large_multiple_libraries()
669 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_libraries()
679 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)\n", numLines, I… in test_large_multiple_libraries()
685 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_libraries()
696 /* Link the program that calls the kernels and the library that contains them */ in test_large_multiple_libraries()
698 test_error( error, "Unable to link a program with a library" ); in test_large_multiple_libraries()
712 test_error( error, "Unable to release program object" ); in test_large_multiple_libraries()
728 test_error( error, "Unable to release program object" ); in test_large_multiple_libraries()
736 test_error( error, "Unable to release program object" ); in test_large_multiple_libraries()
761 …log_error( "ERROR: multiple library program test failed for %d lines! (in %s:%d)\n\n", toTest[ i ]… in test_multiple_libraries()
790 …log_error( "ERROR: Unable to allocate program array with %d programs! (in %s:%d)\n", (1+numLibrari… in test_large_multiple_files_multiple_libraries()
823 /* Try to create a program with these lines */ in test_large_multiple_files_multiple_libraries()
827 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)\n", numLines, I… in test_large_multiple_files_multiple_libraries()
833 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_files_multiple_libraries()
843 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)\n", numLines, I… in test_large_multiple_files_multiple_libraries()
849 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_files_multiple_libraries()
865 /* Link the program that calls the kernels and the library that contains them */ in test_large_multiple_files_multiple_libraries()
867 test_error( error, "Unable to link a program with a library" ); in test_large_multiple_files_multiple_libraries()
881 test_error( error, "Unable to release program object" ); in test_large_multiple_files_multiple_libraries()
898 test_error( error, "Unable to release program object" ); in test_large_multiple_files_multiple_libraries()
906 test_error( error, "Unable to release program object" ); in test_large_multiple_files_multiple_libraries()
931 …log_error( "ERROR: multiple files, multiple libraries program test failed for %d lines! (in %s:%d)… in test_multiple_files_multiple_libraries()
982 /* Try to create a program with these lines */ in test_large_multiple_files()
986 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)\n", numLines, I… in test_large_multiple_files()
992 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_files()
1002 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)\n", numLines, I… in test_large_multiple_files()
1008 test_error( error, "Unable to compile a simple program" ); in test_large_multiple_files()
1013 /* Link the program that calls the kernels and the library that contains them */ in test_large_multiple_files()
1015 test_error( error, "Unable to link a program with a library" ); in test_large_multiple_files()
1029 test_error( error, "Unable to release program object" ); in test_large_multiple_files()
1046 test_error( error, "Unable to release program object" ); in test_large_multiple_files()
1071 …log_error( "ERROR: multiple files program test failed for %d lines! (in %s:%d)\n\n", toTest[ i ], … in test_multiple_files()
1090 cl_program program; in test_simple_compile_only() local
1093 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_compile_only()
1094 if( program == NULL || error != CL_SUCCESS ) in test_simple_compile_only()
1096 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_compile_only()
1100 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_compile_only()
1101 test_error( error, "Unable to compile a simple program" ); in test_simple_compile_only()
1104 error = clReleaseProgram( program ); in test_simple_compile_only()
1105 test_error( error, "Unable to release program object" ); in test_simple_compile_only()
1113 cl_program program; in test_simple_static_compile_only() local
1117 error = create_single_kernel_helper_create_program(context, &program, 1, &compile_static_var); in test_simple_static_compile_only()
1118 if( program == NULL || error != CL_SUCCESS ) in test_simple_static_compile_only()
1120 …log_error( "ERROR: Unable to create a simple static variable test program! (%s in %s:%d)\n", IGetE… in test_simple_static_compile_only()
1125 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_static_compile_only()
1126 test_error( error, "Unable to compile a simple static variable program" ); in test_simple_static_compile_only()
1129 error = clReleaseProgram( program ); in test_simple_static_compile_only()
1130 test_error( error, "Unable to release program object" ); in test_simple_static_compile_only()
1132 … error = create_single_kernel_helper_create_program(context, &program, 1, &compile_static_struct); in test_simple_static_compile_only()
1133 if( program == NULL || error != CL_SUCCESS ) in test_simple_static_compile_only()
1135 …log_error( "ERROR: Unable to create a simple static struct test program! (%s in %s:%d)\n", IGetErr… in test_simple_static_compile_only()
1140 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_static_compile_only()
1141 test_error( error, "Unable to compile a simple static variable program" ); in test_simple_static_compile_only()
1144 error = clReleaseProgram( program ); in test_simple_static_compile_only()
1145 test_error( error, "Unable to release program object" ); in test_simple_static_compile_only()
1147 …error = create_single_kernel_helper_create_program(context, &program, 1, &compile_static_function); in test_simple_static_compile_only()
1148 if( program == NULL || error != CL_SUCCESS ) in test_simple_static_compile_only()
1150 …log_error( "ERROR: Unable to create a simple static function test program! (%s in %s:%d)\n", IGetE… in test_simple_static_compile_only()
1155 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_static_compile_only()
1156 test_error( error, "Unable to compile a simple static function program" ); in test_simple_static_compile_only()
1159 error = clReleaseProgram( program ); in test_simple_static_compile_only()
1160 test_error( error, "Unable to release program object" ); in test_simple_static_compile_only()
1168 cl_program program; in test_simple_extern_compile_only() local
1171 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_header); in test_simple_extern_compile_only()
1172 if( program == NULL || error != CL_SUCCESS ) in test_simple_extern_compile_only()
1174 …log_error( "ERROR: Unable to create a simple extern kernel test program! (%s in %s:%d)\n", IGetErr… in test_simple_extern_compile_only()
1179 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_extern_compile_only()
1180 test_error( error, "Unable to compile a simple extern kernel program" ); in test_simple_extern_compile_only()
1183 error = clReleaseProgram( program ); in test_simple_extern_compile_only()
1184 test_error( error, "Unable to release program object" ); in test_simple_extern_compile_only()
1186 error = create_single_kernel_helper_create_program(context, &program, 1, &compile_extern_var); in test_simple_extern_compile_only()
1187 if( program == NULL || error != CL_SUCCESS ) in test_simple_extern_compile_only()
1189 …log_error( "ERROR: Unable to create a simple extern variable test program! (%s in %s:%d)\n", IGetE… in test_simple_extern_compile_only()
1194 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_extern_compile_only()
1195 test_error( error, "Unable to compile a simple extern variable program" ); in test_simple_extern_compile_only()
1198 error = clReleaseProgram( program ); in test_simple_extern_compile_only()
1199 test_error( error, "Unable to release program object" ); in test_simple_extern_compile_only()
1201 … error = create_single_kernel_helper_create_program(context, &program, 1, &compile_extern_struct); in test_simple_extern_compile_only()
1202 if( program == NULL || error != CL_SUCCESS ) in test_simple_extern_compile_only()
1204 …log_error( "ERROR: Unable to create a simple extern struct test program! (%s in %s:%d)\n", IGetErr… in test_simple_extern_compile_only()
1209 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_extern_compile_only()
1210 test_error( error, "Unable to compile a simple extern variable program" ); in test_simple_extern_compile_only()
1213 error = clReleaseProgram( program ); in test_simple_extern_compile_only()
1214 test_error( error, "Unable to release program object" ); in test_simple_extern_compile_only()
1216 …error = create_single_kernel_helper_create_program(context, &program, 1, &compile_extern_function); in test_simple_extern_compile_only()
1217 if( program == NULL || error != CL_SUCCESS ) in test_simple_extern_compile_only()
1219 …log_error( "ERROR: Unable to create a simple extern function test program! (%s in %s:%d)\n", IGetE… in test_simple_extern_compile_only()
1224 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_extern_compile_only()
1225 test_error( error, "Unable to compile a simple extern function program" ); in test_simple_extern_compile_only()
1228 error = clReleaseProgram( program ); in test_simple_extern_compile_only()
1229 test_error( error, "Unable to release program object" ); in test_simple_extern_compile_only()
1241 static void CL_CALLBACK simple_compile_callback(cl_program program, void* user_data) in simple_compile_callback() argument
1244 …log_info("in the simple_compile_callback: program %p just completed compiling with '%s'\n", progra… in simple_compile_callback()
1251 …log_info("in the simple_compile_callback: program %p just completed compiling with '%p'\n", progra… in simple_compile_callback()
1265 cl_program program; in test_simple_compile_with_callback() local
1269 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_compile_with_callback()
1270 if( program == NULL || error != CL_SUCCESS ) in test_simple_compile_with_callback()
1272 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_compile_with_callback()
1281 …error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, simple_compile_callback, (voi… in test_simple_compile_with_callback()
1282 test_error( error, "Unable to compile a simple program with a callback" ); in test_simple_compile_with_callback()
1291 error = clReleaseProgram( program ); in test_simple_compile_with_callback()
1292 test_error( error, "Unable to release program object" ); in test_simple_compile_with_callback()
1300 cl_program program, header; in test_simple_embedded_header_compile() local
1303program = clCreateProgramWithSource(context, 1, &another_simple_kernel_with_header, NULL, &error); in test_simple_embedded_header_compile()
1304 if( program == NULL || error != CL_SUCCESS ) in test_simple_embedded_header_compile()
1306 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_embedded_header_compile()
1313 …log_error( "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", IGetErrorString( er… in test_simple_embedded_header_compile()
1317 …error = clCompileProgram(program, 1, &deviceID, NULL, 1, &header, &simple_header_name, NULL, NULL); in test_simple_embedded_header_compile()
1318 test_error( error, "Unable to compile a simple program with embedded header" ); in test_simple_embedded_header_compile()
1321 error = clReleaseProgram( program ); in test_simple_embedded_header_compile()
1322 test_error( error, "Unable to release program object" ); in test_simple_embedded_header_compile()
1325 test_error( error, "Unable to release program object" ); in test_simple_embedded_header_compile()
1333 cl_program program; in test_simple_link_only() local
1336 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_link_only()
1337 if( program == NULL || error != CL_SUCCESS ) in test_simple_link_only()
1339 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_link_only()
1343 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_link_only()
1344 test_error( error, "Unable to compile a simple program" ); in test_simple_link_only()
1346 …cl_program my_newly_linked_program = clLinkProgram(context, 1, &deviceID, NULL, 1, &program, NULL,… in test_simple_link_only()
1347 test_error( error, "Unable to link a simple program" ); in test_simple_link_only()
1350 error = clReleaseProgram( program ); in test_simple_link_only()
1351 test_error( error, "Unable to release program object" ); in test_simple_link_only()
1354 test_error( error, "Unable to release program object" ); in test_simple_link_only()
1362 cl_program program, second_program, my_newly_linked_program; in test_two_file_regular_variable_access() local
1365 …log_info("Compiling and linking two program objects, where one tries to access regular variable fr… in test_two_file_regular_variable_access()
1366 error = create_single_kernel_helper_create_program(context, &program, 2, sources); in test_two_file_regular_variable_access()
1367 if( program == NULL || error != CL_SUCCESS ) in test_two_file_regular_variable_access()
1369 …log_error( "ERROR: Unable to create a test program with regular variable! (%s in %s:%d)\n", IGetEr… in test_two_file_regular_variable_access()
1373 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_two_file_regular_variable_access()
1374 test_error( error, "Unable to compile a simple program with regular function" ); in test_two_file_regular_variable_access()
1377 if( program == NULL || error != CL_SUCCESS ) in test_two_file_regular_variable_access()
1379 …log_error( "ERROR: Unable to create a test program that tries to access a regular variable! (%s in… in test_two_file_regular_variable_access()
1384 test_error( error, "Unable to compile a program that tries to access a regular variable" ); in test_two_file_regular_variable_access()
1386 cl_program two_programs[2] = { program, second_program }; in test_two_file_regular_variable_access()
1388 …test_error( error, "clLinkProgram: Expected a different error code while linking a program that tr… in test_two_file_regular_variable_access()
1391 error = clReleaseProgram( program ); in test_two_file_regular_variable_access()
1392 test_error( error, "Unable to release program object" ); in test_two_file_regular_variable_access()
1395 test_error( error, "Unable to release program object" ); in test_two_file_regular_variable_access()
1398 test_error( error, "Unable to release program object" ); in test_two_file_regular_variable_access()
1406 cl_program program, second_program, my_newly_linked_program; in test_two_file_regular_struct_access() local
1409 …log_info("Compiling and linking two program objects, where one tries to access regular struct from… in test_two_file_regular_struct_access()
1410 error = create_single_kernel_helper_create_program(context, &program, 2, sources); in test_two_file_regular_struct_access()
1411 if( program == NULL || error != CL_SUCCESS ) in test_two_file_regular_struct_access()
1413 …log_error( "ERROR: Unable to create a test program with regular struct! (%s in %s:%d)\n", IGetErro… in test_two_file_regular_struct_access()
1417 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_two_file_regular_struct_access()
1418 test_error( error, "Unable to compile a simple program with regular struct" ); in test_two_file_regular_struct_access()
1423 …log_error( "ERROR: Unable to create a test program that tries to access a regular struct! (%s in %… in test_two_file_regular_struct_access()
1428 test_error( error, "Unable to compile a program that tries to access a regular struct" ); in test_two_file_regular_struct_access()
1430 cl_program two_programs[2] = { program, second_program }; in test_two_file_regular_struct_access()
1432 …test_error( error, "clLinkProgram: Expected a different error code while linking a program that tr… in test_two_file_regular_struct_access()
1435 error = clReleaseProgram( program ); in test_two_file_regular_struct_access()
1436 test_error( error, "Unable to release program object" ); in test_two_file_regular_struct_access()
1439 test_error( error, "Unable to release program object" ); in test_two_file_regular_struct_access()
1442 test_error( error, "Unable to release program object" ); in test_two_file_regular_struct_access()
1451 cl_program program, second_program, my_newly_linked_program; in test_two_file_regular_function_access() local
1454 …log_info("Compiling and linking two program objects, where one tries to access regular function fr… in test_two_file_regular_function_access()
1455 error = create_single_kernel_helper_create_program(context, &program, 2, sources); in test_two_file_regular_function_access()
1456 if( program == NULL || error != CL_SUCCESS ) in test_two_file_regular_function_access()
1458 …log_error( "ERROR: Unable to create a test program with regular function! (%s in %s:%d)\n", IGetEr… in test_two_file_regular_function_access()
1462 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_two_file_regular_function_access()
1463 test_error( error, "Unable to compile a simple program with regular function" ); in test_two_file_regular_function_access()
1468 …log_error( "ERROR: Unable to create a test program that tries to access a regular function! (%s in… in test_two_file_regular_function_access()
1473 test_error( error, "Unable to compile a program that tries to access a regular function" ); in test_two_file_regular_function_access()
1475 cl_program two_programs[2] = { program, second_program }; in test_two_file_regular_function_access()
1477 …test_error( error, "clLinkProgram: Expected a different error code while linking a program that tr… in test_two_file_regular_function_access()
1480 error = clReleaseProgram( program ); in test_two_file_regular_function_access()
1481 test_error( error, "Unable to release program object" ); in test_two_file_regular_function_access()
1484 test_error( error, "Unable to release program object" ); in test_two_file_regular_function_access()
1487 test_error( error, "Unable to release program object" ); in test_two_file_regular_function_access()
1495 cl_program program, header, simple_program; in test_simple_embedded_header_link() local
1498program = clCreateProgramWithSource(context, 1, &another_simple_kernel_with_header, NULL, &error); in test_simple_embedded_header_link()
1499 if( program == NULL || error != CL_SUCCESS ) in test_simple_embedded_header_link()
1501 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_embedded_header_link()
1508 …log_error( "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", IGetErrorString( er… in test_simple_embedded_header_link()
1512 …error = clCompileProgram(program, 1, &deviceID, NULL, 1, &header, &simple_header_name, NULL, NULL); in test_simple_embedded_header_link()
1513 test_error( error, "Unable to compile a simple program with embedded header" ); in test_simple_embedded_header_link()
1518 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_embedded_header_link()
1523 test_error( error, "Unable to compile a simple program" ); in test_simple_embedded_header_link()
1525 cl_program two_programs[2] = { program, simple_program }; in test_simple_embedded_header_link()
1530 error = clReleaseProgram( program ); in test_simple_embedded_header_link()
1531 test_error( error, "Unable to release program object" ); in test_simple_embedded_header_link()
1534 test_error( error, "Unable to release program object" ); in test_simple_embedded_header_link()
1537 test_error( error, "Unable to release program object" ); in test_simple_embedded_header_link()
1540 test_error( error, "Unable to release program object" ); in test_simple_embedded_header_link()
1547 static void CL_CALLBACK simple_link_callback(cl_program program, void* user_data) in simple_link_callback() argument
1550 …log_info("in the simple_link_callback: program %p just completed linking with '%s'\n", program, (c… in simple_link_callback()
1557 …log_info("in the simple_link_callback: program %p just completed linking with '%p'\n", program, si… in simple_link_callback()
1571 cl_program program; in test_simple_link_with_callback() local
1575 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_link_with_callback()
1576 if( program == NULL || error != CL_SUCCESS ) in test_simple_link_with_callback()
1578 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_link_with_callback()
1582 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_link_with_callback()
1583 test_error( error, "Unable to compile a simple program" ); in test_simple_link_with_callback()
1590 …cl_program my_linked_library = clLinkProgram(context, 1, &deviceID, NULL, 1, &program, simple_link… in test_simple_link_with_callback()
1591 test_error( error, "Unable to link a simple program" ); in test_simple_link_with_callback()
1600 error = clReleaseProgram( program ); in test_simple_link_with_callback()
1601 test_error( error, "Unable to release program object" ); in test_simple_link_with_callback()
1604 test_error( error, "Unable to release program object" ); in test_simple_link_with_callback()
1736 cl_program program; in test_execute_after_simple_compile_and_link() local
1739 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_simple_compile_and_link()
1740 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_simple_compile_and_link()
1742 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_simple_compile_and_link()
1746 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_simple_compile_and_link()
1747 test_error( error, "Unable to compile a simple program" ); in test_execute_after_simple_compile_and_link()
1749 …cl_program my_newly_linked_program = clLinkProgram(context, 1, &deviceID, NULL, 1, &program, NULL,… in test_execute_after_simple_compile_and_link()
1750 test_error( error, "Unable to link a simple program" ); in test_execute_after_simple_compile_and_link()
1763 error = clReleaseProgram( program ); in test_execute_after_simple_compile_and_link()
1764 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link()
1767 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link()
1775 cl_program program; in test_execute_after_simple_compile_and_link_no_device_info() local
1778 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_simple_compile_and_link_no_device_info()
1779 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_simple_compile_and_link_no_device_info()
1781 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_simple_compile_and_link_no_device_info()
1785 error = clCompileProgram(program, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_simple_compile_and_link_no_device_info()
1786 test_error( error, "Unable to compile a simple program" ); in test_execute_after_simple_compile_and_link_no_device_info()
1788 …cl_program my_newly_linked_program = clLinkProgram(context, 0, NULL, NULL, 1, &program, NULL, NULL… in test_execute_after_simple_compile_and_link_no_device_info()
1789 test_error( error, "Unable to link a simple program" ); in test_execute_after_simple_compile_and_link_no_device_info()
1802 error = clReleaseProgram( program ); in test_execute_after_simple_compile_and_link_no_device_info()
1803 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link_no_device_info()
1806 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link_no_device_info()
1814 cl_program program; in test_execute_after_simple_compile_and_link_with_defines() local
1817 …error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel_with_defin… in test_execute_after_simple_compile_and_link_with_defines()
1818 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_simple_compile_and_link_with_defines()
1820 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_simple_compile_and_link_with_defines()
1824 …error = clCompileProgram(program, 1, &deviceID, "-DFIRST=5 -DSECOND=37", 0, NULL, NULL, NULL, NULL… in test_execute_after_simple_compile_and_link_with_defines()
1825 test_error( error, "Unable to compile a simple program" ); in test_execute_after_simple_compile_and_link_with_defines()
1827 …cl_program my_newly_linked_program = clLinkProgram(context, 1, &deviceID, NULL, 1, &program, NULL,… in test_execute_after_simple_compile_and_link_with_defines()
1828 test_error( error, "Unable to link a simple program" ); in test_execute_after_simple_compile_and_link_with_defines()
1841 error = clReleaseProgram( program ); in test_execute_after_simple_compile_and_link_with_defines()
1842 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link_with_defines()
1845 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link_with_defines()
1853 cl_program program; in test_execute_after_serialize_reload_object() local
1858 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_serialize_reload_object()
1859 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_serialize_reload_object()
1861 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_serialize_reload_object()
1865 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_serialize_reload_object()
1866 test_error( error, "Unable to compile a simple program" ); in test_execute_after_serialize_reload_object()
1869 …error = clGetProgramInfo( program, CL_PROGRAM_BINARY_SIZES, sizeof( binarySize ), &binarySize, NUL… in test_execute_after_serialize_reload_object()
1875 log_error( "ERROR: Binary size of program is zero (in %s:%d)\n", __FILE__, __LINE__ ); in test_execute_after_serialize_reload_object()
1891 error = clGetProgramInfo( program, CL_PROGRAM_BINARIES, 0, NULL, &size ); in test_execute_after_serialize_reload_object()
1900 error = clGetProgramInfo( program, CL_PROGRAM_BINARIES, sizeof( buffers ), &buffers, NULL ); in test_execute_after_serialize_reload_object()
1901 test_error( error, "Unable to get program binary" ); in test_execute_after_serialize_reload_object()
1905 test_error( error, "Unable to create program with binary" ); in test_execute_after_serialize_reload_object()
1908 test_error( error, "Unable to link a simple program" ); in test_execute_after_serialize_reload_object()
1921 error = clReleaseProgram( program ); in test_execute_after_serialize_reload_object()
1922 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_object()
1925 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_object()
1928 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_object()
1938 cl_program program, another_program; in test_execute_after_serialize_reload_library() local
1944 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_serialize_reload_library()
1945 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_serialize_reload_library()
1947 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_serialize_reload_library()
1951 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_serialize_reload_library()
1952 test_error( error, "Unable to compile a simple program" ); in test_execute_after_serialize_reload_library()
1954 …ed_library = clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, NULL, NULL, &err… in test_execute_after_serialize_reload_library()
1965 log_error( "ERROR: Binary size of program is zero (in %s:%d)\n", __FILE__, __LINE__ ); in test_execute_after_serialize_reload_library()
1990 test_error( error, "Unable to get program binary" ); in test_execute_after_serialize_reload_library()
1994 test_error( error, "Unable to create program with binary" ); in test_execute_after_serialize_reload_library()
1999 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_serialize_reload_library()
2004 test_error( error, "Unable to compile a simple program" ); in test_execute_after_serialize_reload_library()
2031 error = clReleaseProgram( program ); in test_execute_after_serialize_reload_library()
2032 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_library()
2035 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_library()
2038 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_library()
2041 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_library()
2044 test_error( error, "Unable to release program object" ); in test_execute_after_serialize_reload_library()
2051 static void CL_CALLBACK program_compile_completion_callback(cl_program program, void* user_data) in program_compile_completion_callback() argument
2055 …fo("in the program_compile_completion_callback: program %p just completed compiling with '%p'\n", in program_compile_completion_callback()
2066 static void CL_CALLBACK program_link_completion_callback(cl_program program, void* user_data) in program_link_completion_callback() argument
2070 …g_info("in the program_link_completion_callback: program %p just completed linking with '%p'\n", p… in program_link_completion_callback()
2084 cl_program program; in test_execute_after_simple_compile_and_link_with_callbacks() local
2088 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_simple_compile_and_link_with_callbacks()
2089 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_simple_compile_and_link_with_callbacks()
2091 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_simple_compile_and_link_with_callbacks()
2098 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, in test_execute_after_simple_compile_and_link_with_callbacks()
2100 test_error( error, "Unable to compile a simple program" ); in test_execute_after_simple_compile_and_link_with_callbacks()
2111 cl_program my_newly_linked_program = clLinkProgram(context, 1, &deviceID, NULL, 1, &program, in test_execute_after_simple_compile_and_link_with_callbacks()
2113 test_error( error, "Unable to link a simple program" ); in test_execute_after_simple_compile_and_link_with_callbacks()
2132 error = clReleaseProgram( program ); in test_execute_after_simple_compile_and_link_with_callbacks()
2133 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link_with_callbacks()
2136 test_error( error, "Unable to release program object" ); in test_execute_after_simple_compile_and_link_with_callbacks()
2144 cl_program program; in test_simple_library_only() local
2147 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_library_only()
2148 if( program == NULL || error != CL_SUCCESS ) in test_simple_library_only()
2150 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_library_only()
2154 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_library_only()
2155 test_error( error, "Unable to compile a simple program" ); in test_simple_library_only()
2157 …ed_library = clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, NULL, NULL, &err… in test_simple_library_only()
2161 error = clReleaseProgram( program ); in test_simple_library_only()
2162 test_error( error, "Unable to release program object" ); in test_simple_library_only()
2165 test_error( error, "Unable to release program object" ); in test_simple_library_only()
2173 cl_program program; in test_simple_library_with_callback() local
2177 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_library_with_callback()
2178 if( program == NULL || error != CL_SUCCESS ) in test_simple_library_with_callback()
2180 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_library_with_callback()
2184 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_library_with_callback()
2185 test_error( error, "Unable to compile a simple program" ); in test_simple_library_with_callback()
2192 …gram my_newly_minted_library = clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, in test_simple_library_with_callback()
2203 error = clReleaseProgram( program ); in test_simple_library_with_callback()
2204 test_error( error, "Unable to release program object" ); in test_simple_library_with_callback()
2207 test_error( error, "Unable to release program object" ); in test_simple_library_with_callback()
2215 cl_program program, another_program; in test_simple_library_with_link() local
2218 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_simple_library_with_link()
2219 if( program == NULL || error != CL_SUCCESS ) in test_simple_library_with_link()
2221 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_library_with_link()
2225 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_simple_library_with_link()
2226 test_error( error, "Unable to compile a simple program" ); in test_simple_library_with_link()
2228 …ed_library = clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, NULL, NULL, &err… in test_simple_library_with_link()
2234 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_simple_library_with_link()
2239 test_error( error, "Unable to compile a simple program" ); in test_simple_library_with_link()
2246 error = clReleaseProgram( program ); in test_simple_library_with_link()
2247 test_error( error, "Unable to release program object" ); in test_simple_library_with_link()
2250 test_error( error, "Unable to release program object" ); in test_simple_library_with_link()
2253 test_error( error, "Unable to release program object" ); in test_simple_library_with_link()
2256 test_error( error, "Unable to release program object" ); in test_simple_library_with_link()
2264 cl_program program, another_program; in test_execute_after_simple_library_with_link() local
2267 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_simple_library_with_link()
2268 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_simple_library_with_link()
2270 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_simple_library_with_link()
2274 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_simple_library_with_link()
2275 test_error( error, "Unable to compile a simple program" ); in test_execute_after_simple_library_with_link()
2277 …ed_library = clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, NULL, NULL, &err… in test_execute_after_simple_library_with_link()
2283 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_simple_library_with_link()
2288 test_error( error, "Unable to compile a simple program" ); in test_execute_after_simple_library_with_link()
2315 error = clReleaseProgram( program ); in test_execute_after_simple_library_with_link()
2316 test_error( error, "Unable to release program object" ); in test_execute_after_simple_library_with_link()
2319 test_error( error, "Unable to release program object" ); in test_execute_after_simple_library_with_link()
2322 test_error( error, "Unable to release program object" ); in test_execute_after_simple_library_with_link()
2325 test_error( error, "Unable to release program object" ); in test_execute_after_simple_library_with_link()
2333 cl_program program, another_program; in test_two_file_link() local
2336 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_two_file_link()
2337 if( program == NULL || error != CL_SUCCESS ) in test_two_file_link()
2339 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_two_file_link()
2343 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_two_file_link()
2344 test_error( error, "Unable to compile a simple program" ); in test_two_file_link()
2350 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_two_file_link()
2355 test_error( error, "Unable to compile a simple program" ); in test_two_file_link()
2357 cl_program two_programs[2] = { program, another_program }; in test_two_file_link()
2362 error = clReleaseProgram( program ); in test_two_file_link()
2363 test_error( error, "Unable to release program object" ); in test_two_file_link()
2366 test_error( error, "Unable to release program object" ); in test_two_file_link()
2369 test_error( error, "Unable to release program object" ); in test_two_file_link()
2377 cl_program program, another_program; in test_execute_after_two_file_link() local
2380 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_execute_after_two_file_link()
2381 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_two_file_link()
2383 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_two_file_link()
2387 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_two_file_link()
2388 test_error( error, "Unable to compile a simple program" ); in test_execute_after_two_file_link()
2393 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_two_file_link()
2398 test_error( error, "Unable to compile a simple program" ); in test_execute_after_two_file_link()
2400 cl_program two_programs[2] = { program, another_program }; in test_execute_after_two_file_link()
2425 error = clReleaseProgram( program ); in test_execute_after_two_file_link()
2426 test_error( error, "Unable to release program object" ); in test_execute_after_two_file_link()
2429 test_error( error, "Unable to release program object" ); in test_execute_after_two_file_link()
2432 test_error( error, "Unable to release program object" ); in test_execute_after_two_file_link()
2440 cl_program program, header, simple_program; in test_execute_after_embedded_header_link() local
2444program = clCreateProgramWithSource(context, 1, &another_simple_kernel_with_header, NULL, &error); in test_execute_after_embedded_header_link()
2445 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_embedded_header_link()
2447 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_embedded_header_link()
2454 …log_error( "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", IGetErrorString( er… in test_execute_after_embedded_header_link()
2458 …error = clCompileProgram(program, 1, &deviceID, NULL, 1, &header, &simple_header_name, NULL, NULL); in test_execute_after_embedded_header_link()
2459 test_error( error, "Unable to compile a simple program with embedded header" ); in test_execute_after_embedded_header_link()
2464 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_embedded_header_link()
2469 test_error( error, "Unable to compile a simple program" ); in test_execute_after_embedded_header_link()
2471 cl_program two_programs[2] = { program, simple_program }; in test_execute_after_embedded_header_link()
2496 error = clReleaseProgram( program ); in test_execute_after_embedded_header_link()
2497 test_error( error, "Unable to release program object" ); in test_execute_after_embedded_header_link()
2500 test_error( error, "Unable to release program object" ); in test_execute_after_embedded_header_link()
2503 test_error( error, "Unable to release program object" ); in test_execute_after_embedded_header_link()
2506 test_error( error, "Unable to release program object" ); in test_execute_after_embedded_header_link()
2523 cl_program program, simple_program; in test_execute_after_included_header_link() local
2527program = clCreateProgramWithSource(context, 1, &another_simple_kernel_with_header, NULL, &error); in test_execute_after_included_header_link()
2528 if( program == NULL || error != CL_SUCCESS ) in test_execute_after_included_header_link()
2530 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_included_header_link()
2572 error = clCompileProgram(program, 1, &deviceID, "-I/tmp/foo/bar", 0, NULL, NULL, NULL, NULL); in test_execute_after_included_header_link()
2574 error = clCompileProgram(program, 1, &deviceID, "-Ifoo/bar", 0, NULL, NULL, NULL, NULL); in test_execute_after_included_header_link()
2576 test_error( error, "Unable to compile a simple program with included header" ); in test_execute_after_included_header_link()
2603 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_execute_after_included_header_link()
2608 test_error( error, "Unable to compile a simple program" ); in test_execute_after_included_header_link()
2610 cl_program two_programs[2] = { program, simple_program }; in test_execute_after_included_header_link()
2635 error = clReleaseProgram( program ); in test_execute_after_included_header_link()
2636 test_error( error, "Unable to release program object" ); in test_execute_after_included_header_link()
2639 test_error( error, "Unable to release program object" ); in test_execute_after_included_header_link()
2642 test_error( error, "Unable to release program object" ); in test_execute_after_included_header_link()
2650 cl_program program, another_program, program_with_binary, fully_linked_program_with_binary; in test_program_binary_type() local
2656 log_info("Testing querying of program binary type...\n"); in test_program_binary_type()
2657 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_program_binary_type()
2658 if( program == NULL || error != CL_SUCCESS ) in test_program_binary_type()
2660 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_program_binary_type()
2664 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, NULL); in test_program_binary_type()
2665 test_error( error, "Unable to compile a simple program" ); in test_program_binary_type()
2667 …error = clGetProgramBuildInfo (program, deviceID, CL_PROGRAM_BINARY_TYPE, sizeof(cl_program_binary… in test_program_binary_type()
2668 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2671 …log_error( "ERROR: Expected program type of a just compiled program to be CL_PROGRAM_BINARY_TYPE_C… in test_program_binary_type()
2677 …error = clGetProgramInfo( program, CL_PROGRAM_BINARY_SIZES, sizeof( binarySize ), &binarySize, NUL… in test_program_binary_type()
2683 log_error( "ERROR: Binary size of program is zero (in %s:%d)\n", __FILE__, __LINE__ ); in test_program_binary_type()
2699 error = clGetProgramInfo( program, CL_PROGRAM_BINARIES, 0, NULL, &size ); in test_program_binary_type()
2708 error = clGetProgramInfo( program, CL_PROGRAM_BINARIES, sizeof( buffers ), &buffers, NULL ); in test_program_binary_type()
2709 test_error( error, "Unable to get program binary" ); in test_program_binary_type()
2713 test_error( error, "Unable to create program with binary" ); in test_program_binary_type()
2716 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2719 …log_error( "ERROR: Expected program type of a program created from compiled object to be CL_PROGRA… in test_program_binary_type()
2729 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2732 …log_error( "ERROR: Expected program type of a just linked library to be CL_PROGRAM_BINARY_TYPE_LIB… in test_program_binary_type()
2744 log_error( "ERROR: Binary size of program is zero (in %s:%d)\n", __FILE__, __LINE__ ); in test_program_binary_type()
2769 test_error( error, "Unable to get program binary" ); in test_program_binary_type()
2773 test_error( error, "Unable to create program with binary" ); in test_program_binary_type()
2775 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2778 …log_error( "ERROR: Expected program type of a library loaded with binary to be CL_PROGRAM_BINARY_T… in test_program_binary_type()
2787 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_program_binary_type()
2792 test_error( error, "Unable to compile a simple program" ); in test_program_binary_type()
2799 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2802 …log_error( "ERROR: Expected program type of a newly build executable to be CL_PROGRAM_BINARY_TYPE_… in test_program_binary_type()
2814 log_error( "ERROR: Binary size of program is zero (in %s:%d)\n", __FILE__, __LINE__ ); in test_program_binary_type()
2840 test_error( error, "Unable to get program binary" ); in test_program_binary_type()
2844 test_error( error, "Unable to create program with binary" ); in test_program_binary_type()
2847 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2850 …log_error( "ERROR: Expected program type of a program created from a fully linked executable binar… in test_program_binary_type()
2858 test_error( error, "Unable to build a simple program" ); in test_program_binary_type()
2881 error = clReleaseProgram( program ); in test_program_binary_type()
2882 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2885 error = create_single_kernel_helper_create_program(context, &program, 1, &simple_kernel); in test_program_binary_type()
2886 if( program == NULL || error != CL_SUCCESS ) in test_program_binary_type()
2888 …log_error( "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", IGetErrorString( erro… in test_program_binary_type()
2892 error = clBuildProgram(program, 1, &deviceID, NULL, NULL, NULL); in test_program_binary_type()
2893 test_error( error, "Unable to build a simple program" ); in test_program_binary_type()
2894 …error = clGetProgramBuildInfo (program, deviceID, CL_PROGRAM_BINARY_TYPE, sizeof(cl_program_binary… in test_program_binary_type()
2895 test_error( error, "Unable to get program binary type" ); in test_program_binary_type()
2898 …log_error( "ERROR: Expected program type of a program created from compiled object to be CL_PROGRA… in test_program_binary_type()
2904 error = clReleaseProgram( program ); in test_program_binary_type()
2905 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2908 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2911 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2914 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2917 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2920 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2923 test_error( error, "Unable to release program object" ); in test_program_binary_type()
2930 void CL_CALLBACK test_notify_compile_complete( cl_program program, void *userData ) in test_notify_compile_complete() argument
2939 log_info( "\n <-- program successfully compiled\n" ); in test_notify_compile_complete()
2944 void CL_CALLBACK test_notify_create_library_complete( cl_program program, void *userData ) in test_notify_create_library_complete() argument
2958 void CL_CALLBACK test_notify_link_complete( cl_program program, void *userData ) in test_notify_link_complete() argument
2967 log_info( "\n <-- program successfully linked\n" ); in test_notify_link_complete()
2973 cl_program program; in test_large_compile_and_link_status_options_log() local
3017 /* Try to create a program with these lines */ in test_large_compile_and_link_status_options_log()
3018 error = create_single_kernel_helper_create_program(context, &program, 2 * numLines + 2, lines); in test_large_compile_and_link_status_options_log()
3019 if( program == NULL || error != CL_SUCCESS ) in test_large_compile_and_link_status_options_log()
3021 …log_error( "ERROR: Unable to create long test program with %d lines! (%s) (in %s:%d)\n", numLines,… in test_large_compile_and_link_status_options_log()
3026 …error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_STATUS, sizeof( status ), &stat… in test_large_compile_and_link_status_options_log()
3027 test_error( error, "Unable to get program compile status" ); in test_large_compile_and_link_status_options_log()
3035 …error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, test_notify_compile_complete,… in test_large_compile_and_link_status_options_log()
3036 test_error( error, "Unable to compile a simple program" ); in test_large_compile_and_link_status_options_log()
3039 …error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_STATUS, sizeof( status ), &stat… in test_large_compile_and_link_status_options_log()
3040 test_error( error, "Unable to get program compile status" ); in test_large_compile_and_link_status_options_log()
3046 …error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_STATUS, sizeof( status ), &stat… in test_large_compile_and_link_status_options_log()
3047 test_error( error, "Unable to get program compile status" ); in test_large_compile_and_link_status_options_log()
3055 error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_LOG, 0, NULL, &size_ret ); in test_large_compile_and_link_status_options_log()
3058 …error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_LOG, size_ret, compile_log, NUL… in test_large_compile_and_link_status_options_log()
3066 … error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_OPTIONS, 0, NULL, &size_ret ); in test_large_compile_and_link_status_options_log()
3069 …error = clGetProgramBuildInfo( program, deviceID, CL_PROGRAM_BUILD_OPTIONS, size_ret, compile_opti… in test_large_compile_and_link_status_options_log()
3083 …log_error( "ERROR: Unable to create long test program with %d lines! (%s in %s:%d)", numLines, IGe… in test_large_compile_and_link_status_options_log()
3089 test_error( error, "Unable to compile a simple program" ); in test_large_compile_and_link_status_options_log()
3134 /* Link the program that calls the kernels and the library that contains them */ in test_large_compile_and_link_status_options_log()
3135 cl_program programs[2] = { program, my_newly_minted_library }; in test_large_compile_and_link_status_options_log()
3137 test_error( error, "Unable to link a program with a library" ); in test_large_compile_and_link_status_options_log()
3141 test_error( error, "Unable to get program link status" ); in test_large_compile_and_link_status_options_log()
3145 log_info( "\n -- still waiting for program linking... (status is %d)", status ); in test_large_compile_and_link_status_options_log()
3148 test_error( error, "Unable to get program link status" ); in test_large_compile_and_link_status_options_log()
3152 …log_error( "ERROR: program linking failed! (status: %d in %s:%d)\n", (int)status, __FILE__, __LINE… in test_large_compile_and_link_status_options_log()
3188 error = clReleaseProgram( program ); in test_large_compile_and_link_status_options_log()
3189 test_error( error, "Unable to release program object" ); in test_large_compile_and_link_status_options_log()
3201 test_error( error, "Unable to release program object" ); in test_large_compile_and_link_status_options_log()
3206 test_error( error, "Unable to release program object" ); in test_large_compile_and_link_status_options_log()
3209 test_error( error, "Unable to release program object" ); in test_large_compile_and_link_status_options_log()
3234 …log_error( "ERROR: large program compilation, linking, status, options and logging test failed for… in test_compile_and_link_status_options_log()