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

Function BuildKernelFn

test_conformance/math_brute_force/unary_double.cpp:27–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27cl_int BuildKernelFn(cl_uint job_id, cl_uint thread_id UNUSED, void *p)
28{
29 BuildKernelInfo &info = *(BuildKernelInfo *)p;
30 auto generator = [](const std::string &kernel_name, const char *builtin,
31 cl_uint vector_size_index) {
32 const char *builtinCall = builtin;
33 if (strcmp(builtin, "reciprocal") == 0)
34 {
35 builtinCall = "((RETTYPE)(1.0))/";
36 }
37 return GetUnaryKernel(kernel_name, builtinCall, ParameterType::Double,
38 ParameterType::Double, vector_size_index);
39 };
40 return BuildKernels(info, job_id, generator);
41}
42
43struct TestInfo : public TestInfoBase
44{

Callers

nothing calls this directly

Calls 2

GetUnaryKernelFunction · 0.85
BuildKernelsFunction · 0.85

Tested by

no test coverage detected