• Home
  • Raw
  • Download

Lines Matching full:program

162     cl_program program;  in test_large_single_compile()  local
192 /* Try to create a program with these lines */ in test_large_single_compile()
193 error = create_single_kernel_helper_create_program(context, &program, in test_large_single_compile()
195 if (program == NULL || error != CL_SUCCESS) in test_large_single_compile()
197 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_single_compile()
201 if (program != NULL) in test_large_single_compile()
203 error = clReleaseProgram(program); in test_large_single_compile()
204 test_error(error, "Unable to release a program object"); in test_large_single_compile()
210 error = clBuildProgram(program, 1, &deviceID, NULL, NULL, NULL); in test_large_single_compile()
211 test_error(error, "Unable to build a long program"); in test_large_single_compile()
214 error = clReleaseProgram(program); in test_large_single_compile()
215 test_error(error, "Unable to release a program object"); in test_large_single_compile()
246 "ERROR: long program test failed for %d lines! (in %s:%d)\n", in test_large_compile()
277 cl_program program; in test_large_multi_file_library() local
318 /* Try to create a program with these lines */ in test_large_multi_file_library()
319 error = create_single_kernel_helper_create_program(context, &program, in test_large_multi_file_library()
321 if (program == NULL || error != CL_SUCCESS) in test_large_multi_file_library()
323 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_multi_file_library()
333 if (program != NULL) in test_large_multi_file_library()
335 error = clReleaseProgram(program); in test_large_multi_file_library()
336 test_error(error, "Unable to release program object"); in test_large_multi_file_library()
343 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_large_multi_file_library()
345 test_error(error, "Unable to compile a simple program"); in test_large_multi_file_library()
356 log_error("ERROR: Unable to create long test program with %d " in test_large_multi_file_library()
365 test_error(error, "Unable to compile a simple program"); in test_large_multi_file_library()
376 /* Link the program that calls the kernels and the library that contains in test_large_multi_file_library()
378 cl_program programs[2] = { program, my_newly_minted_library }; in test_large_multi_file_library()
381 test_error(error, "Unable to link a program with a library"); in test_large_multi_file_library()
393 error = clReleaseProgram(program); in test_large_multi_file_library()
394 test_error(error, "Unable to release program object"); in test_large_multi_file_library()
406 test_error(error, "Unable to release program object"); in test_large_multi_file_library()
414 test_error(error, "Unable to release program object"); in test_large_multi_file_library()
417 test_error(error, "Unable to release program object"); in test_large_multi_file_library()
446 log_error("ERROR: multi-file library program test failed for %d " in test_multi_file_libraries()
473 cl_program program; in test_large_multiple_embedded_headers() local
528 log_error("ERROR: Unable to create a simple header program! (%s in " in test_large_multiple_embedded_headers()
545 /* Try to create a program with these lines */ in test_large_multiple_embedded_headers()
546 error = create_single_kernel_helper_create_program(context, &program, in test_large_multiple_embedded_headers()
548 if (program == NULL || error != CL_SUCCESS) in test_large_multiple_embedded_headers()
550 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_multiple_embedded_headers()
557 error = clCompileProgram(program, 1, &deviceID, NULL, numLines, headers, in test_large_multiple_embedded_headers()
559 test_error(error, "Unable to compile a simple program"); in test_large_multiple_embedded_headers()
570 log_error("ERROR: Unable to create long test program with %d " in test_large_multiple_embedded_headers()
579 test_error(error, "Unable to compile a simple program"); in test_large_multiple_embedded_headers()
590 /* Link the program that calls the kernels and the library that contains in test_large_multiple_embedded_headers()
592 cl_program programs[2] = { program, my_newly_minted_library }; in test_large_multiple_embedded_headers()
595 test_error(error, "Unable to link a program with a library"); in test_large_multiple_embedded_headers()
607 error = clReleaseProgram(program); in test_large_multiple_embedded_headers()
608 test_error(error, "Unable to release program object"); in test_large_multiple_embedded_headers()
625 test_error(error, "Unable to release program object"); in test_large_multiple_embedded_headers()
627 test_error(error, "Unable to release header program object"); in test_large_multiple_embedded_headers()
636 test_error(error, "Unable to release program object"); in test_large_multiple_embedded_headers()
639 test_error(error, "Unable to release program object"); in test_large_multiple_embedded_headers()
670 log_error("ERROR: multiple embedded headers program test failed " in test_multiple_embedded_headers()
709 log_error("ERROR: Unable to allocate program array with %d programs! " in test_large_multiple_libraries()
752 /* Try to create a program with these lines */ in test_large_multiple_libraries()
757 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_multiple_libraries()
766 test_error(error, "Unable to compile a simple program"); in test_large_multiple_libraries()
777 log_error("ERROR: Unable to create long test program with %d " in test_large_multiple_libraries()
786 test_error(error, "Unable to compile a simple program"); in test_large_multiple_libraries()
800 /* Link the program that calls the kernels and the library that contains in test_large_multiple_libraries()
805 test_error(error, "Unable to link a program with a library"); in test_large_multiple_libraries()
820 test_error(error, "Unable to release program object"); in test_large_multiple_libraries()
836 test_error(error, "Unable to release program object"); in test_large_multiple_libraries()
844 test_error(error, "Unable to release program object"); in test_large_multiple_libraries()
873 log_error("ERROR: multiple library program test failed for %d " in test_multiple_libraries()
912 log_error("ERROR: Unable to allocate program array with %d programs! " in test_large_multiple_files_multiple_libraries()
955 /* Try to create a program with these lines */ in test_large_multiple_files_multiple_libraries()
960 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_multiple_files_multiple_libraries()
969 test_error(error, "Unable to compile a simple program"); in test_large_multiple_files_multiple_libraries()
980 log_error("ERROR: Unable to create long test program with %d " in test_large_multiple_files_multiple_libraries()
989 test_error(error, "Unable to compile a simple program"); in test_large_multiple_files_multiple_libraries()
1012 /* Link the program that calls the kernels and the library that contains in test_large_multiple_files_multiple_libraries()
1018 test_error(error, "Unable to link a program with a library"); in test_large_multiple_files_multiple_libraries()
1033 test_error(error, "Unable to release program object"); in test_large_multiple_files_multiple_libraries()
1050 test_error(error, "Unable to release program object"); in test_large_multiple_files_multiple_libraries()
1058 test_error(error, "Unable to release program object"); in test_large_multiple_files_multiple_libraries()
1090 log_error("ERROR: multiple files, multiple libraries program test " in test_multiple_files_multiple_libraries()
1154 /* Try to create a program with these lines */ in test_large_multiple_files()
1159 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_multiple_files()
1168 test_error(error, "Unable to compile a simple program"); in test_large_multiple_files()
1179 log_error("ERROR: Unable to create long test program with %d " in test_large_multiple_files()
1188 test_error(error, "Unable to compile a simple program"); in test_large_multiple_files()
1193 /* Link the program that calls the kernels and the library that contains in test_large_multiple_files()
1198 test_error(error, "Unable to link a program with a library"); in test_large_multiple_files()
1213 test_error(error, "Unable to release program object"); in test_large_multiple_files()
1230 test_error(error, "Unable to release program object"); in test_large_multiple_files()
1258 log_error("ERROR: multiple files program test failed for %d lines! " in test_multiple_files()
1283 cl_program program; in test_simple_compile_only() local
1286 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_compile_only()
1288 if (program == NULL || error != CL_SUCCESS) in test_simple_compile_only()
1291 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_compile_only()
1296 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_compile_only()
1298 test_error(error, "Unable to compile a simple program"); in test_simple_compile_only()
1301 error = clReleaseProgram(program); in test_simple_compile_only()
1302 test_error(error, "Unable to release program object"); in test_simple_compile_only()
1311 cl_program program; in test_simple_static_compile_only() local
1315 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_static_compile_only()
1317 if (program == NULL || error != CL_SUCCESS) in test_simple_static_compile_only()
1320 "program! (%s in %s:%d)\n", in test_simple_static_compile_only()
1326 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_static_compile_only()
1328 test_error(error, "Unable to compile a simple static variable program"); in test_simple_static_compile_only()
1331 error = clReleaseProgram(program); in test_simple_static_compile_only()
1332 test_error(error, "Unable to release program object"); in test_simple_static_compile_only()
1334 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_static_compile_only()
1336 if (program == NULL || error != CL_SUCCESS) in test_simple_static_compile_only()
1339 "program! (%s in %s:%d)\n", in test_simple_static_compile_only()
1345 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_static_compile_only()
1347 test_error(error, "Unable to compile a simple static variable program"); in test_simple_static_compile_only()
1350 error = clReleaseProgram(program); in test_simple_static_compile_only()
1351 test_error(error, "Unable to release program object"); in test_simple_static_compile_only()
1354 context, &program, 1, &compile_static_function); in test_simple_static_compile_only()
1355 if (program == NULL || error != CL_SUCCESS) in test_simple_static_compile_only()
1358 "program! (%s in %s:%d)\n", in test_simple_static_compile_only()
1364 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_static_compile_only()
1366 test_error(error, "Unable to compile a simple static function program"); in test_simple_static_compile_only()
1369 error = clReleaseProgram(program); in test_simple_static_compile_only()
1370 test_error(error, "Unable to release program object"); in test_simple_static_compile_only()
1379 cl_program program; in test_simple_extern_compile_only() local
1382 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_extern_compile_only()
1384 if (program == NULL || error != CL_SUCCESS) in test_simple_extern_compile_only()
1387 "program! (%s in %s:%d)\n", in test_simple_extern_compile_only()
1393 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_extern_compile_only()
1395 test_error(error, "Unable to compile a simple extern kernel program"); in test_simple_extern_compile_only()
1398 error = clReleaseProgram(program); in test_simple_extern_compile_only()
1399 test_error(error, "Unable to release program object"); in test_simple_extern_compile_only()
1401 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_extern_compile_only()
1403 if (program == NULL || error != CL_SUCCESS) in test_simple_extern_compile_only()
1406 "program! (%s in %s:%d)\n", in test_simple_extern_compile_only()
1412 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_extern_compile_only()
1414 test_error(error, "Unable to compile a simple extern variable program"); in test_simple_extern_compile_only()
1417 error = clReleaseProgram(program); in test_simple_extern_compile_only()
1418 test_error(error, "Unable to release program object"); in test_simple_extern_compile_only()
1420 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_extern_compile_only()
1422 if (program == NULL || error != CL_SUCCESS) in test_simple_extern_compile_only()
1425 "program! (%s in %s:%d)\n", in test_simple_extern_compile_only()
1431 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_extern_compile_only()
1433 test_error(error, "Unable to compile a simple extern variable program"); in test_simple_extern_compile_only()
1436 error = clReleaseProgram(program); in test_simple_extern_compile_only()
1437 test_error(error, "Unable to release program object"); in test_simple_extern_compile_only()
1440 context, &program, 1, &compile_extern_function); in test_simple_extern_compile_only()
1441 if (program == NULL || error != CL_SUCCESS) in test_simple_extern_compile_only()
1444 "program! (%s in %s:%d)\n", in test_simple_extern_compile_only()
1450 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_extern_compile_only()
1452 test_error(error, "Unable to compile a simple extern function program"); in test_simple_extern_compile_only()
1455 error = clReleaseProgram(program); in test_simple_extern_compile_only()
1456 test_error(error, "Unable to release program object"); in test_simple_extern_compile_only()
1469 static void CL_CALLBACK simple_compile_callback(cl_program program, in simple_compile_callback() argument
1473 log_info("in the simple_compile_callback: program %p just completed " in simple_compile_callback()
1475 program, simple_compile_user_data->m_message); in simple_compile_callback()
1486 log_info("in the simple_compile_callback: program %p just completed " in simple_compile_callback()
1488 program, simple_compile_user_data->m_event); in simple_compile_callback()
1507 cl_program program; in test_simple_compile_with_callback() local
1511 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_compile_with_callback()
1513 if (program == NULL || error != CL_SUCCESS) in test_simple_compile_with_callback()
1516 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_compile_with_callback()
1528 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, in test_simple_compile_with_callback()
1531 test_error(error, "Unable to compile a simple program with a callback"); in test_simple_compile_with_callback()
1542 error = clReleaseProgram(program); in test_simple_compile_with_callback()
1543 test_error(error, "Unable to release program object"); in test_simple_compile_with_callback()
1554 cl_program program, header; in test_simple_embedded_header_compile() local
1557 program = clCreateProgramWithSource( in test_simple_embedded_header_compile()
1559 if (program == NULL || error != CL_SUCCESS) in test_simple_embedded_header_compile()
1562 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_embedded_header_compile()
1572 "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", in test_simple_embedded_header_compile()
1577 error = clCompileProgram(program, 1, &deviceID, NULL, 1, &header, in test_simple_embedded_header_compile()
1580 "Unable to compile a simple program with embedded header"); in test_simple_embedded_header_compile()
1583 error = clReleaseProgram(program); in test_simple_embedded_header_compile()
1584 test_error(error, "Unable to release program object"); in test_simple_embedded_header_compile()
1587 test_error(error, "Unable to release program object"); in test_simple_embedded_header_compile()
1596 cl_program program; in test_simple_link_only() local
1599 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_link_only()
1601 if (program == NULL || error != CL_SUCCESS) in test_simple_link_only()
1604 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_link_only()
1609 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_link_only()
1611 test_error(error, "Unable to compile a simple program"); in test_simple_link_only()
1614 context, 1, &deviceID, NULL, 1, &program, NULL, NULL, &error); in test_simple_link_only()
1615 test_error(error, "Unable to link a simple program"); in test_simple_link_only()
1618 error = clReleaseProgram(program); in test_simple_link_only()
1619 test_error(error, "Unable to release program object"); in test_simple_link_only()
1622 test_error(error, "Unable to release program object"); in test_simple_link_only()
1633 cl_program program, second_program, my_newly_linked_program; in test_two_file_regular_variable_access() local
1638 log_info("Compiling and linking two program objects, where one tries to " in test_two_file_regular_variable_access()
1640 error = create_single_kernel_helper_create_program(context, &program, 2, in test_two_file_regular_variable_access()
1642 if (program == NULL || error != CL_SUCCESS) in test_two_file_regular_variable_access()
1644 log_error("ERROR: Unable to create a test program with regular " in test_two_file_regular_variable_access()
1650 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_two_file_regular_variable_access()
1653 "Unable to compile a simple program with regular function"); in test_two_file_regular_variable_access()
1657 if (program == NULL || error != CL_SUCCESS) in test_two_file_regular_variable_access()
1659 log_error("ERROR: Unable to create a test program that tries to access " in test_two_file_regular_variable_access()
1669 "Unable to compile a program that tries to access a regular variable"); in test_two_file_regular_variable_access()
1671 cl_program two_programs[2] = { program, second_program }; in test_two_file_regular_variable_access()
1676 "program that tries to access a regular variable"); in test_two_file_regular_variable_access()
1679 error = clReleaseProgram(program); in test_two_file_regular_variable_access()
1680 test_error(error, "Unable to release program object"); in test_two_file_regular_variable_access()
1683 test_error(error, "Unable to release program object"); in test_two_file_regular_variable_access()
1686 test_error(error, "Unable to release program object"); in test_two_file_regular_variable_access()
1697 cl_program program, second_program, my_newly_linked_program; in test_two_file_regular_struct_access() local
1702 log_info("Compiling and linking two program objects, where one tries to " in test_two_file_regular_struct_access()
1704 error = create_single_kernel_helper_create_program(context, &program, 2, in test_two_file_regular_struct_access()
1706 if (program == NULL || error != CL_SUCCESS) in test_two_file_regular_struct_access()
1708 log_error("ERROR: Unable to create a test program with regular struct! " in test_two_file_regular_struct_access()
1714 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_two_file_regular_struct_access()
1716 test_error(error, "Unable to compile a simple program with regular struct"); in test_two_file_regular_struct_access()
1722 log_error("ERROR: Unable to create a test program that tries to access " in test_two_file_regular_struct_access()
1732 "Unable to compile a program that tries to access a regular struct"); in test_two_file_regular_struct_access()
1734 cl_program two_programs[2] = { program, second_program }; in test_two_file_regular_struct_access()
1739 "program that tries to access a regular struct"); in test_two_file_regular_struct_access()
1742 error = clReleaseProgram(program); in test_two_file_regular_struct_access()
1743 test_error(error, "Unable to release program object"); in test_two_file_regular_struct_access()
1746 test_error(error, "Unable to release program object"); in test_two_file_regular_struct_access()
1749 test_error(error, "Unable to release program object"); in test_two_file_regular_struct_access()
1761 cl_program program, second_program, my_newly_linked_program; in test_two_file_regular_function_access() local
1766 log_info("Compiling and linking two program objects, where one tries to " in test_two_file_regular_function_access()
1768 error = create_single_kernel_helper_create_program(context, &program, 2, in test_two_file_regular_function_access()
1770 if (program == NULL || error != CL_SUCCESS) in test_two_file_regular_function_access()
1772 log_error("ERROR: Unable to create a test program with regular " in test_two_file_regular_function_access()
1778 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_two_file_regular_function_access()
1781 "Unable to compile a simple program with regular function"); in test_two_file_regular_function_access()
1787 log_error("ERROR: Unable to create a test program that tries to access " in test_two_file_regular_function_access()
1797 "Unable to compile a program that tries to access a regular function"); in test_two_file_regular_function_access()
1799 cl_program two_programs[2] = { program, second_program }; in test_two_file_regular_function_access()
1804 "program that tries to access a regular function"); in test_two_file_regular_function_access()
1807 error = clReleaseProgram(program); in test_two_file_regular_function_access()
1808 test_error(error, "Unable to release program object"); in test_two_file_regular_function_access()
1811 test_error(error, "Unable to release program object"); in test_two_file_regular_function_access()
1814 test_error(error, "Unable to release program object"); in test_two_file_regular_function_access()
1823 cl_program program, header, simple_program; in test_simple_embedded_header_link() local
1826 program = clCreateProgramWithSource( in test_simple_embedded_header_link()
1828 if (program == NULL || error != CL_SUCCESS) in test_simple_embedded_header_link()
1831 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_embedded_header_link()
1841 "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", in test_simple_embedded_header_link()
1846 error = clCompileProgram(program, 1, &deviceID, NULL, 1, &header, in test_simple_embedded_header_link()
1849 "Unable to compile a simple program with embedded header"); in test_simple_embedded_header_link()
1856 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_embedded_header_link()
1863 test_error(error, "Unable to compile a simple program"); in test_simple_embedded_header_link()
1865 cl_program two_programs[2] = { program, simple_program }; in test_simple_embedded_header_link()
1873 error = clReleaseProgram(program); in test_simple_embedded_header_link()
1874 test_error(error, "Unable to release program object"); in test_simple_embedded_header_link()
1877 test_error(error, "Unable to release program object"); in test_simple_embedded_header_link()
1880 test_error(error, "Unable to release program object"); in test_simple_embedded_header_link()
1883 test_error(error, "Unable to release program object"); in test_simple_embedded_header_link()
1890 static void CL_CALLBACK simple_link_callback(cl_program program, in simple_link_callback() argument
1894 log_info("in the simple_link_callback: program %p just completed linking " in simple_link_callback()
1896 program, (const char *)simple_link_user_data->m_message); in simple_link_callback()
1907 log_info("in the simple_link_callback: program %p just completed linking " in simple_link_callback()
1909 program, simple_link_user_data->m_event); in simple_link_callback()
1927 cl_program program; in test_simple_link_with_callback() local
1931 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_link_with_callback()
1933 if (program == NULL || error != CL_SUCCESS) in test_simple_link_with_callback()
1936 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_link_with_callback()
1941 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_link_with_callback()
1943 test_error(error, "Unable to compile a simple program"); in test_simple_link_with_callback()
1952 context, 1, &deviceID, NULL, 1, &program, simple_link_callback, in test_simple_link_with_callback()
1954 test_error(error, "Unable to link a simple program"); in test_simple_link_with_callback()
1965 error = clReleaseProgram(program); in test_simple_link_with_callback()
1966 test_error(error, "Unable to release program object"); in test_simple_link_with_callback()
1969 test_error(error, "Unable to release program object"); in test_simple_link_with_callback()
2117 cl_program program; in test_execute_after_simple_compile_and_link() local
2120 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_simple_compile_and_link()
2122 if (program == NULL || error != CL_SUCCESS) in test_execute_after_simple_compile_and_link()
2125 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_simple_compile_and_link()
2130 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_execute_after_simple_compile_and_link()
2132 test_error(error, "Unable to compile a simple program"); in test_execute_after_simple_compile_and_link()
2135 context, 1, &deviceID, NULL, 1, &program, NULL, NULL, &error); in test_execute_after_simple_compile_and_link()
2136 test_error(error, "Unable to link a simple program"); in test_execute_after_simple_compile_and_link()
2149 error = clReleaseProgram(program); in test_execute_after_simple_compile_and_link()
2150 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link()
2153 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link()
2163 cl_program program; in test_execute_after_simple_compile_and_link_no_device_info() local
2167 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_simple_compile_and_link_no_device_info()
2169 if (program == NULL || error != CL_SUCCESS) in test_execute_after_simple_compile_and_link_no_device_info()
2172 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_simple_compile_and_link_no_device_info()
2177 error = clCompileProgram(program, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL); in test_execute_after_simple_compile_and_link_no_device_info()
2178 test_error(error, "Unable to compile a simple program"); in test_execute_after_simple_compile_and_link_no_device_info()
2181 clLinkProgram(context, 0, NULL, NULL, 1, &program, NULL, NULL, &error); in test_execute_after_simple_compile_and_link_no_device_info()
2182 test_error(error, "Unable to link a simple program"); in test_execute_after_simple_compile_and_link_no_device_info()
2195 error = clReleaseProgram(program); in test_execute_after_simple_compile_and_link_no_device_info()
2196 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link_no_device_info()
2199 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link_no_device_info()
2209 cl_program program; in test_execute_after_simple_compile_and_link_with_defines() local
2214 context, &program, 1, &simple_kernel_with_defines, in test_execute_after_simple_compile_and_link_with_defines()
2216 if (program == NULL || error != CL_SUCCESS) in test_execute_after_simple_compile_and_link_with_defines()
2219 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_simple_compile_and_link_with_defines()
2224 error = clCompileProgram(program, 1, &deviceID, "-DFIRST=5 -DSECOND=37", 0, in test_execute_after_simple_compile_and_link_with_defines()
2226 test_error(error, "Unable to compile a simple program"); in test_execute_after_simple_compile_and_link_with_defines()
2229 context, 1, &deviceID, NULL, 1, &program, NULL, NULL, &error); in test_execute_after_simple_compile_and_link_with_defines()
2230 test_error(error, "Unable to link a simple program"); in test_execute_after_simple_compile_and_link_with_defines()
2243 error = clReleaseProgram(program); in test_execute_after_simple_compile_and_link_with_defines()
2244 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link_with_defines()
2247 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link_with_defines()
2258 cl_program program; in test_execute_after_serialize_reload_object() local
2264 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_serialize_reload_object()
2266 if (program == NULL || error != CL_SUCCESS) in test_execute_after_serialize_reload_object()
2269 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_serialize_reload_object()
2274 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_execute_after_serialize_reload_object()
2276 test_error(error, "Unable to compile a simple program"); in test_execute_after_serialize_reload_object()
2279 error = clGetProgramInfo(program, CL_PROGRAM_BINARY_SIZES, in test_execute_after_serialize_reload_object()
2286 log_error("ERROR: Binary size of program is zero (in %s:%d)\n", in test_execute_after_serialize_reload_object()
2306 error = clGetProgramInfo(program, CL_PROGRAM_BINARIES, 0, NULL, &size); in test_execute_after_serialize_reload_object()
2317 error = clGetProgramInfo(program, CL_PROGRAM_BINARIES, sizeof(buffers), in test_execute_after_serialize_reload_object()
2319 test_error(error, "Unable to get program binary"); in test_execute_after_serialize_reload_object()
2325 test_error(error, "Unable to create program with binary"); in test_execute_after_serialize_reload_object()
2330 test_error(error, "Unable to link a simple program"); in test_execute_after_serialize_reload_object()
2343 error = clReleaseProgram(program); in test_execute_after_serialize_reload_object()
2344 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_object()
2347 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_object()
2350 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_object()
2363 cl_program program, another_program; in test_execute_after_serialize_reload_library() local
2370 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_serialize_reload_library()
2372 if (program == NULL || error != CL_SUCCESS) in test_execute_after_serialize_reload_library()
2375 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_serialize_reload_library()
2380 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_execute_after_serialize_reload_library()
2382 test_error(error, "Unable to compile a simple program"); in test_execute_after_serialize_reload_library()
2385 clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, in test_execute_after_serialize_reload_library()
2398 log_error("ERROR: Binary size of program is zero (in %s:%d)\n", in test_execute_after_serialize_reload_library()
2431 test_error(error, "Unable to get program binary"); in test_execute_after_serialize_reload_library()
2437 test_error(error, "Unable to create program with binary"); in test_execute_after_serialize_reload_library()
2444 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_serialize_reload_library()
2451 test_error(error, "Unable to compile a simple program"); in test_execute_after_serialize_reload_library()
2481 error = clReleaseProgram(program); in test_execute_after_serialize_reload_library()
2482 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_library()
2485 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_library()
2488 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_library()
2491 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_library()
2494 test_error(error, "Unable to release program object"); in test_execute_after_serialize_reload_library()
2501 static void CL_CALLBACK program_compile_completion_callback(cl_program program, in program_compile_completion_callback() argument
2506 log_info("in the program_compile_completion_callback: program %p just " in program_compile_completion_callback()
2508 program, compile_program_completion_event); in program_compile_completion_callback()
2522 static void CL_CALLBACK program_link_completion_callback(cl_program program, in program_link_completion_callback() argument
2527 log_info("in the program_link_completion_callback: program %p just " in program_link_completion_callback()
2529 program, link_program_completion_event); in program_link_completion_callback()
2548 cl_program program; in test_execute_after_simple_compile_and_link_with_callbacks() local
2553 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_simple_compile_and_link_with_callbacks()
2555 if (program == NULL || error != CL_SUCCESS) in test_execute_after_simple_compile_and_link_with_callbacks()
2558 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_simple_compile_and_link_with_callbacks()
2566 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, in test_execute_after_simple_compile_and_link_with_callbacks()
2569 test_error(error, "Unable to compile a simple program"); in test_execute_after_simple_compile_and_link_with_callbacks()
2583 clLinkProgram(context, 1, &deviceID, NULL, 1, &program, in test_execute_after_simple_compile_and_link_with_callbacks()
2586 test_error(error, "Unable to link a simple program"); in test_execute_after_simple_compile_and_link_with_callbacks()
2607 error = clReleaseProgram(program); in test_execute_after_simple_compile_and_link_with_callbacks()
2608 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link_with_callbacks()
2611 test_error(error, "Unable to release program object"); in test_execute_after_simple_compile_and_link_with_callbacks()
2620 cl_program program; in test_simple_library_only() local
2623 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_library_only()
2625 if (program == NULL || error != CL_SUCCESS) in test_simple_library_only()
2628 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_library_only()
2633 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_library_only()
2635 test_error(error, "Unable to compile a simple program"); in test_simple_library_only()
2638 clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, in test_simple_library_only()
2643 error = clReleaseProgram(program); in test_simple_library_only()
2644 test_error(error, "Unable to release program object"); in test_simple_library_only()
2647 test_error(error, "Unable to release program object"); in test_simple_library_only()
2656 cl_program program; in test_simple_library_with_callback() local
2660 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_library_with_callback()
2662 if (program == NULL || error != CL_SUCCESS) in test_simple_library_with_callback()
2665 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_library_with_callback()
2670 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_library_with_callback()
2672 test_error(error, "Unable to compile a simple program"); in test_simple_library_with_callback()
2681 context, 1, &deviceID, "-create-library", 1, &program, in test_simple_library_with_callback()
2694 error = clReleaseProgram(program); in test_simple_library_with_callback()
2695 test_error(error, "Unable to release program object"); in test_simple_library_with_callback()
2698 test_error(error, "Unable to release program object"); in test_simple_library_with_callback()
2707 cl_program program, another_program; in test_simple_library_with_link() local
2710 error = create_single_kernel_helper_create_program(context, &program, 1, in test_simple_library_with_link()
2712 if (program == NULL || error != CL_SUCCESS) in test_simple_library_with_link()
2715 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_library_with_link()
2720 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_simple_library_with_link()
2722 test_error(error, "Unable to compile a simple program"); in test_simple_library_with_link()
2725 clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, in test_simple_library_with_link()
2734 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_simple_library_with_link()
2741 test_error(error, "Unable to compile a simple program"); in test_simple_library_with_link()
2751 error = clReleaseProgram(program); in test_simple_library_with_link()
2752 test_error(error, "Unable to release program object"); in test_simple_library_with_link()
2755 test_error(error, "Unable to release program object"); in test_simple_library_with_link()
2758 test_error(error, "Unable to release program object"); in test_simple_library_with_link()
2761 test_error(error, "Unable to release program object"); in test_simple_library_with_link()
2772 cl_program program, another_program; in test_execute_after_simple_library_with_link() local
2776 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_simple_library_with_link()
2778 if (program == NULL || error != CL_SUCCESS) in test_execute_after_simple_library_with_link()
2781 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_simple_library_with_link()
2786 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_execute_after_simple_library_with_link()
2788 test_error(error, "Unable to compile a simple program"); in test_execute_after_simple_library_with_link()
2791 clLinkProgram(context, 1, &deviceID, "-create-library", 1, &program, in test_execute_after_simple_library_with_link()
2800 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_simple_library_with_link()
2807 test_error(error, "Unable to compile a simple program"); in test_execute_after_simple_library_with_link()
2837 error = clReleaseProgram(program); in test_execute_after_simple_library_with_link()
2838 test_error(error, "Unable to release program object"); in test_execute_after_simple_library_with_link()
2841 test_error(error, "Unable to release program object"); in test_execute_after_simple_library_with_link()
2844 test_error(error, "Unable to release program object"); in test_execute_after_simple_library_with_link()
2847 test_error(error, "Unable to release program object"); in test_execute_after_simple_library_with_link()
2856 cl_program program, another_program; in test_two_file_link() local
2859 error = create_single_kernel_helper_create_program(context, &program, 1, in test_two_file_link()
2861 if (program == NULL || error != CL_SUCCESS) in test_two_file_link()
2864 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_two_file_link()
2869 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_two_file_link()
2871 test_error(error, "Unable to compile a simple program"); in test_two_file_link()
2879 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_two_file_link()
2886 test_error(error, "Unable to compile a simple program"); in test_two_file_link()
2888 cl_program two_programs[2] = { program, another_program }; in test_two_file_link()
2894 error = clReleaseProgram(program); in test_two_file_link()
2895 test_error(error, "Unable to release program object"); in test_two_file_link()
2898 test_error(error, "Unable to release program object"); in test_two_file_link()
2901 test_error(error, "Unable to release program object"); in test_two_file_link()
2910 cl_program program, another_program; in test_execute_after_two_file_link() local
2914 error = create_single_kernel_helper_create_program(context, &program, 1, in test_execute_after_two_file_link()
2916 if (program == NULL || error != CL_SUCCESS) in test_execute_after_two_file_link()
2919 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_two_file_link()
2924 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_execute_after_two_file_link()
2926 test_error(error, "Unable to compile a simple program"); in test_execute_after_two_file_link()
2933 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_two_file_link()
2940 test_error(error, "Unable to compile a simple program"); in test_execute_after_two_file_link()
2942 cl_program two_programs[2] = { program, another_program }; in test_execute_after_two_file_link()
2968 error = clReleaseProgram(program); in test_execute_after_two_file_link()
2969 test_error(error, "Unable to release program object"); in test_execute_after_two_file_link()
2972 test_error(error, "Unable to release program object"); in test_execute_after_two_file_link()
2975 test_error(error, "Unable to release program object"); in test_execute_after_two_file_link()
2986 cl_program program, header, simple_program; in test_execute_after_embedded_header_link() local
2990 program = clCreateProgramWithSource( in test_execute_after_embedded_header_link()
2992 if (program == NULL || error != CL_SUCCESS) in test_execute_after_embedded_header_link()
2995 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_embedded_header_link()
3005 "ERROR: Unable to create a simple header program! (%s in %s:%d)\n", in test_execute_after_embedded_header_link()
3010 error = clCompileProgram(program, 1, &deviceID, NULL, 1, &header, in test_execute_after_embedded_header_link()
3013 "Unable to compile a simple program with embedded header"); in test_execute_after_embedded_header_link()
3020 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_embedded_header_link()
3027 test_error(error, "Unable to compile a simple program"); in test_execute_after_embedded_header_link()
3029 cl_program two_programs[2] = { program, simple_program }; in test_execute_after_embedded_header_link()
3057 error = clReleaseProgram(program); in test_execute_after_embedded_header_link()
3058 test_error(error, "Unable to release program object"); in test_execute_after_embedded_header_link()
3061 test_error(error, "Unable to release program object"); in test_execute_after_embedded_header_link()
3064 test_error(error, "Unable to release program object"); in test_execute_after_embedded_header_link()
3067 test_error(error, "Unable to release program object"); in test_execute_after_embedded_header_link()
3087 cl_program program, simple_program; in test_execute_after_included_header_link() local
3091 program = clCreateProgramWithSource( in test_execute_after_included_header_link()
3093 if (program == NULL || error != CL_SUCCESS) in test_execute_after_included_header_link()
3096 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_included_header_link()
3157 error = clCompileProgram(program, 1, &deviceID, "-I/tmp/foo/bar", 0, NULL, in test_execute_after_included_header_link()
3160 error = clCompileProgram(program, 1, &deviceID, "-Ifoo/bar", 0, NULL, NULL, in test_execute_after_included_header_link()
3164 "Unable to compile a simple program with included header"); in test_execute_after_included_header_link()
3204 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_execute_after_included_header_link()
3211 test_error(error, "Unable to compile a simple program"); in test_execute_after_included_header_link()
3213 cl_program two_programs[2] = { program, simple_program }; in test_execute_after_included_header_link()
3241 error = clReleaseProgram(program); in test_execute_after_included_header_link()
3242 test_error(error, "Unable to release program object"); in test_execute_after_included_header_link()
3245 test_error(error, "Unable to release program object"); in test_execute_after_included_header_link()
3248 test_error(error, "Unable to release program object"); in test_execute_after_included_header_link()
3257 cl_program program, another_program, program_with_binary, in test_program_binary_type() local
3264 log_info("Testing querying of program binary type...\n"); in test_program_binary_type()
3265 error = create_single_kernel_helper_create_program(context, &program, 1, in test_program_binary_type()
3267 if (program == NULL || error != CL_SUCCESS) in test_program_binary_type()
3270 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_program_binary_type()
3275 error = clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, NULL, in test_program_binary_type()
3277 test_error(error, "Unable to compile a simple program"); in test_program_binary_type()
3279 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BINARY_TYPE, in test_program_binary_type()
3282 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3285 log_error("ERROR: Expected program type of a just compiled program to " in test_program_binary_type()
3293 error = clGetProgramInfo(program, CL_PROGRAM_BINARY_SIZES, in test_program_binary_type()
3300 log_error("ERROR: Binary size of program is zero (in %s:%d)\n", in test_program_binary_type()
3320 error = clGetProgramInfo(program, CL_PROGRAM_BINARIES, 0, NULL, &size); in test_program_binary_type()
3332 error = clGetProgramInfo(program, CL_PROGRAM_BINARIES, sizeof(buffers), in test_program_binary_type()
3334 test_error(error, "Unable to get program binary"); in test_program_binary_type()
3340 test_error(error, "Unable to create program with binary"); in test_program_binary_type()
3345 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3348 log_error("ERROR: Expected program type of a program created from " in test_program_binary_type()
3365 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3368 log_error("ERROR: Expected program type of a just linked library to be " in test_program_binary_type()
3383 log_error("ERROR: Binary size of program is zero (in %s:%d)\n", in test_program_binary_type()
3416 test_error(error, "Unable to get program binary"); in test_program_binary_type()
3422 test_error(error, "Unable to create program with binary"); in test_program_binary_type()
3426 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3429 log_error("ERROR: Expected program type of a library loaded with " in test_program_binary_type()
3442 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_program_binary_type()
3449 test_error(error, "Unable to compile a simple program"); in test_program_binary_type()
3461 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3464 log_error("ERROR: Expected program type of a newly build executable to " in test_program_binary_type()
3479 log_error("ERROR: Binary size of program is zero (in %s:%d)\n", in test_program_binary_type()
3514 test_error(error, "Unable to get program binary"); in test_program_binary_type()
3520 test_error(error, "Unable to create program with binary"); in test_program_binary_type()
3525 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3528 log_error("ERROR: Expected program type of a program created from " in test_program_binary_type()
3540 test_error(error, "Unable to build a simple program"); in test_program_binary_type()
3563 error = clReleaseProgram(program); in test_program_binary_type()
3564 test_error(error, "Unable to release program object"); in test_program_binary_type()
3568 error = create_single_kernel_helper_create_program(context, &program, 1, in test_program_binary_type()
3570 if (program == NULL || error != CL_SUCCESS) in test_program_binary_type()
3573 "ERROR: Unable to create a simple test program! (%s in %s:%d)\n", in test_program_binary_type()
3578 error = clBuildProgram(program, 1, &deviceID, NULL, NULL, NULL); in test_program_binary_type()
3579 test_error(error, "Unable to build a simple program"); in test_program_binary_type()
3580 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BINARY_TYPE, in test_program_binary_type()
3583 test_error(error, "Unable to get program binary type"); in test_program_binary_type()
3587 "ERROR: Expected program type of a program created from compiled " in test_program_binary_type()
3595 error = clReleaseProgram(program); in test_program_binary_type()
3596 test_error(error, "Unable to release program object"); in test_program_binary_type()
3599 test_error(error, "Unable to release program object"); in test_program_binary_type()
3602 test_error(error, "Unable to release program object"); in test_program_binary_type()
3605 test_error(error, "Unable to release program object"); in test_program_binary_type()
3608 test_error(error, "Unable to release program object"); in test_program_binary_type()
3611 test_error(error, "Unable to release program object"); in test_program_binary_type()
3614 test_error(error, "Unable to release program object"); in test_program_binary_type()
3621 void CL_CALLBACK test_notify_compile_complete(cl_program program, in test_notify_compile_complete() argument
3633 log_info("\n <-- program successfully compiled\n"); in test_notify_compile_complete()
3638 void CL_CALLBACK test_notify_create_library_complete(cl_program program, in test_notify_create_library_complete() argument
3655 void CL_CALLBACK test_notify_link_complete(cl_program program, void *userData) in test_notify_link_complete() argument
3666 log_info("\n <-- program successfully linked\n"); in test_notify_link_complete()
3675 cl_program program; in test_large_compile_and_link_status_options_log() local
3726 /* Try to create a program with these lines */ in test_large_compile_and_link_status_options_log()
3727 error = create_single_kernel_helper_create_program(context, &program, in test_large_compile_and_link_status_options_log()
3729 if (program == NULL || error != CL_SUCCESS) in test_large_compile_and_link_status_options_log()
3731 log_error("ERROR: Unable to create long test program with %d lines! " in test_large_compile_and_link_status_options_log()
3738 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_STATUS, in test_large_compile_and_link_status_options_log()
3740 test_error(error, "Unable to get program compile status"); in test_large_compile_and_link_status_options_log()
3751 clCompileProgram(program, 1, &deviceID, NULL, 0, NULL, NULL, in test_large_compile_and_link_status_options_log()
3753 test_error(error, "Unable to compile a simple program"); in test_large_compile_and_link_status_options_log()
3757 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_STATUS, in test_large_compile_and_link_status_options_log()
3759 test_error(error, "Unable to get program compile status"); in test_large_compile_and_link_status_options_log()
3766 clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_STATUS, in test_large_compile_and_link_status_options_log()
3768 test_error(error, "Unable to get program compile status"); in test_large_compile_and_link_status_options_log()
3777 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_LOG, 0, in test_large_compile_and_link_status_options_log()
3781 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_LOG, in test_large_compile_and_link_status_options_log()
3792 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_OPTIONS, in test_large_compile_and_link_status_options_log()
3796 error = clGetProgramBuildInfo(program, deviceID, CL_PROGRAM_BUILD_OPTIONS, in test_large_compile_and_link_status_options_log()
3815 log_error("ERROR: Unable to create long test program with %d " in test_large_compile_and_link_status_options_log()
3824 test_error(error, "Unable to compile a simple program"); in test_large_compile_and_link_status_options_log()
3889 /* Link the program that calls the kernels and the library that contains in test_large_compile_and_link_status_options_log()
3891 cl_program programs[2] = { program, my_newly_minted_library }; in test_large_compile_and_link_status_options_log()
3895 test_error(error, "Unable to link a program with a library"); in test_large_compile_and_link_status_options_log()
3902 test_error(error, "Unable to get program link status"); in test_large_compile_and_link_status_options_log()
3906 log_info("\n -- still waiting for program linking... (status is %d)", in test_large_compile_and_link_status_options_log()
3912 test_error(error, "Unable to get program link status"); in test_large_compile_and_link_status_options_log()
3916 log_error("ERROR: program linking failed! (status: %d in %s:%d)\n", in test_large_compile_and_link_status_options_log()
3964 error = clReleaseProgram(program); in test_large_compile_and_link_status_options_log()
3965 test_error(error, "Unable to release program object"); in test_large_compile_and_link_status_options_log()
3977 test_error(error, "Unable to release program object"); in test_large_compile_and_link_status_options_log()
3982 test_error(error, "Unable to release program object"); in test_large_compile_and_link_status_options_log()
3985 test_error(error, "Unable to release program object"); in test_large_compile_and_link_status_options_log()
4017 "ERROR: large program compilation, linking, status, options " in test_compile_and_link_status_options_log()