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

Function testKernelStringConstructor

tests/test_openclhpp.cpp:2071–2084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2069}
2070
2071void testKernelStringConstructor(void)
2072{
2073 clCreateKernel_StubWithCallback(clCreateKernel_constructor);
2074
2075 cl_int errorCode;
2076 cl::string kernelName("test");
2077 cl::Program program(make_program(0));
2078 cl::Kernel kernel(program, kernelName, &errorCode);
2079 TEST_ASSERT_EQUAL(kernel(), make_kernel(0));
2080 TEST_ASSERT_EQUAL(errorCode, CL_SUCCESS);
2081
2082 program() = nullptr;
2083 kernel() = nullptr;
2084}
2085
2086void testKernelSetArgScalar(void)
2087{

Callers

nothing calls this directly

Calls 2

make_programFunction · 0.85
make_kernelFunction · 0.70

Tested by

no test coverage detected