MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / create_kernel

Method create_kernel

src/core/CL/CLKernelLibrary.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 return _kernel_library;
45}
46Kernel CLKernelLibrary::create_kernel(const std::string &kernel_name,
47 const std::set<std::string> &build_options_set) const
48{
49 const opencl::ClKernelLibrary &klib = opencl::ClKernelLibrary::get();
50 const std::string program_name = klib.program_name(kernel_name);
51 auto program = klib.program(program_name);
52 const std::string &kernel_path = CLKernelLibrary::get().get_kernel_path();
53 return _compile_context.create_kernel(kernel_name, program_name, program.program, kernel_path, build_options_set,
54 program.is_binary);
55}
56std::string CLKernelLibrary::get_program_name(const std::string &kernel_name) const
57{
58 return opencl::ClKernelLibrary::get().program_name(kernel_name);

Callers 2

create_kernelFunction · 0.45
TEST_CASEFunction · 0.45

Calls 3

program_nameMethod · 0.80
programMethod · 0.80
get_kernel_pathMethod · 0.80

Tested by

no test coverage detected