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

Function clCreateKernel_constructor

tests/test_openclhpp.cpp:2041–2055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2039static cl_int3 vectorArg;
2040
2041static cl_kernel clCreateKernel_constructor(
2042 cl_program program,
2043 const char* kernel_name,
2044 cl_int* errcode_ret,
2045 int num_calls)
2046{
2047 (void) num_calls;
2048
2049 TEST_ASSERT_EQUAL(program, make_program(0));
2050 TEST_ASSERT_EQUAL_STRING(kernel_name, "test");
2051 if (errcode_ret != nullptr)
2052 *errcode_ret = CL_SUCCESS;
2053
2054 return make_kernel(0);
2055}
2056
2057void testKernelConstructor(void)
2058{

Callers

nothing calls this directly

Calls 2

make_programFunction · 0.85
make_kernelFunction · 0.70

Tested by

no test coverage detected