Wrapper class for an OpenCL program. More...
#include <program.hpp>
Public Member Functions | |
program () | |
program (cl_program program_handle, viennacl::ocl::context const &program_context, std::string const &prog_name=std::string()) | |
program (program const &other) | |
viennacl::ocl::program & | operator= (const program &other) |
viennacl::ocl::context const * | p_context () const |
std::string const & | name () const |
viennacl::ocl::kernel & | add_kernel (cl_kernel kernel_handle, std::string const &kernel_name) |
Adds a kernel to the program. More... | |
viennacl::ocl::kernel & | get_kernel (std::string const &name) |
Returns the kernel with the provided name. More... | |
const viennacl::ocl::handle< cl_program > & | handle () const |
Wrapper class for an OpenCL program.
This class was written when the OpenCL C++ bindings haven't been standardized yet. Regardless, it takes care about some additional details and is supposed to provide higher convenience by holding the kernels defined in the program.
Definition at line 42 of file program.hpp.
|
inline |
Definition at line 47 of file program.hpp.
|
inline |
Definition at line 48 of file program.hpp.
|
inline |
Definition at line 51 of file program.hpp.
|
inline |
Adds a kernel to the program.
Definition at line 765 of file context.hpp.
|
inline |
Returns the kernel with the provided name.
Definition at line 773 of file context.hpp.
|
inline |
Definition at line 72 of file program.hpp.
|
inline |
Definition at line 64 of file program.hpp.
|
inline |
Definition at line 53 of file program.hpp.
|
inline |
Definition at line 62 of file program.hpp.