| 25 | namespace { |
| 26 | |
| 27 | cl_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 | |
| 43 | struct TestInfo : public TestInfoBase |
| 44 | { |
nothing calls this directly
no test coverage detected