24.02.1
|
ClKernelLibrary contains all the OpenCL kernels that are used throughout the library. More...
#include <ClKernelLibrary.h>
Data Structures | |
struct | ClProgramInfo |
Structure to encapsulte program related information. More... | |
Public Member Functions | |
void | set_kernel_path (std::string kernel_path) |
Sets the path that the kernels reside in. More... | |
const std::string & | kernel_path () const |
Gets the path that the kernels reside in. More... | |
ClProgramInfo | program (const std::string &program_name) const |
Gets the source of the selected program. More... | |
std::string | program_name (const std::string &kernel_name) const |
Returns the program name given a kernel name. More... | |
Static Public Member Functions | |
static ClKernelLibrary & | get () |
Access the KernelLibrary singleton. More... | |
ClKernelLibrary contains all the OpenCL kernels that are used throughout the library.
Definition at line 41 of file ClKernelLibrary.h.
|
static |
Access the KernelLibrary singleton.
Definition at line 969 of file ClKernelLibrary.cpp.
Referenced by ClKernelRuntime::configure(), and arm_compute::create_kernel().
const std::string & kernel_path | ( | ) | const |
Gets the path that the kernels reside in.
Definition at line 996 of file ClKernelLibrary.cpp.
Referenced by ClKernelRuntime::configure(), arm_compute::create_kernel(), and ClKernelLibrary::set_kernel_path().
ClKernelLibrary::ClProgramInfo program | ( | const std::string & | program_name | ) | const |
Gets the source of the selected program.
[in] | program_name | Program name |
Definition at line 1001 of file ClKernelLibrary.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, ARM_COMPUTE_ERROR_VAR, ClKernelLibrary::program_name(), and arm_compute::read_file().
Referenced by CLKernelLibrary::create_kernel(), and arm_compute::create_kernel().
std::string program_name | ( | const std::string & | kernel_name | ) | const |
Returns the program name given a kernel name.
Definition at line 975 of file ClKernelLibrary.cpp.
References ARM_COMPUTE_ERROR_VAR, and kernel_name.
Referenced by CLKernelLibrary::create_kernel(), arm_compute::create_kernel(), and ClKernelLibrary::program().
void set_kernel_path | ( | std::string | kernel_path | ) |
Sets the path that the kernels reside in.
[in] | kernel_path | Path of the kernel |
Definition at line 990 of file ClKernelLibrary.cpp.
References ClKernelLibrary::kernel_path().