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

Function clCompileProgram_basic

tests/test_openclhpp.cpp:2716–2744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2714}
2715
2716static cl_int clCompileProgram_basic(
2717 cl_program program,
2718 cl_uint num_devices,
2719 const cl_device_id * device_list,
2720 const char * options,
2721 cl_uint num_input_headers,
2722 const cl_program * input_headers,
2723 const char ** header_include_names,
2724 void (CL_CALLBACK * pfn_notify)(cl_program program,
2725 void * user_data),
2726 void * user_data,
2727 int num_calls)
2728{
2729 (void) num_calls;
2730
2731 TEST_ASSERT_EQUAL(program, make_program(0));
2732 TEST_ASSERT_EQUAL(num_devices, 0);
2733 TEST_ASSERT_EQUAL(device_list, nullptr);
2734 if (options) {
2735 TEST_ASSERT_EQUAL_STRING(options, "-cl-program-compile-options");
2736 }
2737 TEST_ASSERT_EQUAL(num_input_headers, 0);
2738 TEST_ASSERT_EQUAL(input_headers, nullptr);
2739 TEST_ASSERT_EQUAL(header_include_names, nullptr);
2740 TEST_ASSERT_EQUAL(pfn_notify, nullptr);
2741 TEST_ASSERT_EQUAL(user_data, nullptr);
2742
2743 return CL_SUCCESS;
2744}
2745
2746void testCompileProgramBasic(void)
2747{

Callers

nothing calls this directly

Calls 1

make_programFunction · 0.85

Tested by

no test coverage detected