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

Function clBuildProgram_testBuildProgram

tests/test_openclhpp.cpp:2581–2606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2579}
2580
2581static cl_int clBuildProgram_testBuildProgram(
2582 cl_program program,
2583 cl_uint num_devices,
2584 const cl_device_id * device_list,
2585 const char * options,
2586 void (CL_CALLBACK * pfn_notify)(cl_program program, void * user_data),
2587 void * user_data,
2588 int num_calls)
2589{
2590 (void) num_calls;
2591
2592 TEST_ASSERT_EQUAL(program, make_program(0));
2593 TEST_ASSERT_NOT_EQUAL(num_devices, 0);
2594 TEST_ASSERT_NOT_EQUAL(device_list, nullptr);
2595 if (options) {
2596 TEST_ASSERT_EQUAL_STRING(options, "-cl-program-build-options");
2597 }
2598 TEST_ASSERT_EQUAL(pfn_notify, nullptr);
2599 TEST_ASSERT_EQUAL(user_data, nullptr);
2600
2601 for (cl_uint i = 0; i < num_devices; i++) {
2602 TEST_ASSERT_EQUAL(device_list[i], make_device_id(i));
2603 }
2604
2605 return CL_SUCCESS;
2606}
2607
2608void testBuildProgramSingleDevice(void)
2609{

Callers

nothing calls this directly

Calls 2

make_programFunction · 0.85
make_device_idFunction · 0.85

Tested by

no test coverage detected