ViennaCL - The Vienna Computing Library
1.5.2
|
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) |
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.
|
inline |
|
inline |
|
inline |
Adds a kernel to the program.
|
inline |
Returns the kernel with the provided name.
|
inline |
|
inline |
|
inline |