| 440 | } |
| 441 | |
| 442 | cl::Kernel |
| 443 | create_kernel(const CLCompileContext &ctx, const std::string &kernel_name, const std::set<std::string> &build_opts) |
| 444 | { |
| 445 | opencl::ClKernelLibrary &klib = opencl::ClKernelLibrary::get(); |
| 446 | |
| 447 | const std::string program_name = klib.program_name(kernel_name); |
| 448 | auto kernel_src = klib.program(program_name); |
| 449 | const std::string kernel_path = klib.kernel_path(); |
| 450 | |
| 451 | return static_cast<cl::Kernel>(ctx.create_kernel(kernel_name, program_name, kernel_src.program, kernel_path, |
| 452 | build_opts, kernel_src.is_binary)); |
| 453 | } |
| 454 | |
| 455 | cl::NDRange create_lws_hint_parallel_implementations(unsigned int input_dimension, unsigned int vector_size) |
| 456 | { |
no test coverage detected