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

Function clGetProgramInfo_forBuildLog

tests/test_openclhpp.cpp:2693–2714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2691}
2692
2693static cl_int clGetProgramInfo_forBuildLog(
2694 cl_program program,
2695 cl_program_info param_name,
2696 size_t param_value_size,
2697 void * param_value,
2698 size_t * param_value_size_ret,
2699 int num_calls)
2700{
2701 (void) num_calls;
2702
2703 TEST_ASSERT_EQUAL(program, make_program(0));
2704 TEST_ASSERT_EQUAL(param_name, CL_PROGRAM_DEVICES);
2705 if (param_value_size) {
2706 TEST_ASSERT_EQUAL(param_value_size, sizeof(cl_device_id));
2707 TEST_ASSERT_NOT_EQUAL(param_value, nullptr);
2708 *(cl_device_id*)param_value = make_device_id(0);
2709 }
2710 if (param_value_size_ret) {
2711 *param_value_size_ret = sizeof(cl_device_id);
2712 }
2713 return CL_SUCCESS;
2714}
2715
2716static cl_int clCompileProgram_basic(
2717 cl_program program,

Callers

nothing calls this directly

Calls 2

make_programFunction · 0.85
make_device_idFunction · 0.85

Tested by

no test coverage detected