MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / BuildKernelFn

Function BuildKernelFn

test_conformance/math_brute_force/binary_float.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26const float twoToMinus126 = MAKE_HEX_FLOAT(0x1p-126f, 1, -126);
27
28cl_int BuildKernelFn(cl_uint job_id, cl_uint thread_id UNUSED, void *p)
29{
30 BuildKernelInfo &info = *(BuildKernelInfo *)p;
31 auto generator = [](const std::string &kernel_name, const char *builtin,
32 cl_uint vector_size_index) {
33 return GetBinaryKernel(kernel_name, builtin, ParameterType::Float,
34 ParameterType::Float, ParameterType::Float,
35 vector_size_index);
36 };
37 return BuildKernels(info, job_id, generator);
38}
39
40struct TestInfo : public TestInfoBase
41{

Callers

nothing calls this directly

Calls 2

GetBinaryKernelFunction · 0.85
BuildKernelsFunction · 0.85

Tested by

no test coverage detected