MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CLHPP / clCompileProgram_headers

Function clCompileProgram_headers

tests/test_openclhpp.cpp:2825–2855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2823}
2824
2825static cl_int clCompileProgram_headers(
2826 cl_program program,
2827 cl_uint num_devices,
2828 const cl_device_id * device_list,
2829 const char * options,
2830 cl_uint num_input_headers,
2831 const cl_program * input_headers,
2832 const char ** header_include_names,
2833 void (CL_CALLBACK * pfn_notify)(cl_program program,
2834 void * user_data),
2835 void * user_data,
2836 int num_calls)
2837{
2838 (void) num_calls;
2839
2840 TEST_ASSERT_EQUAL(program, make_program(0));
2841 TEST_ASSERT_EQUAL(num_devices, 0);
2842 TEST_ASSERT_EQUAL(device_list, nullptr);
2843 TEST_ASSERT_EQUAL_STRING(options, "");
2844 TEST_ASSERT_EQUAL(num_input_headers, 2);
2845 TEST_ASSERT_NOT_EQUAL(input_headers, nullptr);
2846 TEST_ASSERT_NOT_EQUAL(header_include_names, nullptr);
2847 TEST_ASSERT_EQUAL(input_headers[0], make_program(1));
2848 TEST_ASSERT_EQUAL(input_headers[1], make_program(2));
2849 TEST_ASSERT_EQUAL_STRING(header_include_names[0], "name0");
2850 TEST_ASSERT_EQUAL_STRING(header_include_names[1], "name1");
2851 TEST_ASSERT_EQUAL(pfn_notify, nullptr);
2852 TEST_ASSERT_EQUAL(user_data, nullptr);
2853
2854 return CL_SUCCESS;
2855}
2856
2857void testCompileProgramHeaders(void)
2858{

Callers

nothing calls this directly

Calls 1

make_programFunction · 0.85

Tested by

no test coverage detected