#include <program.hpp>
Public Member Functions | |
program () | |
program (viennacl::ocl::handle< cl_program > const &h, 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 (std::string const &kernel_name) |
Adds a kernel to the program. | |
viennacl::ocl::kernel & | get_kernel (std::string const &name) |
Returns the kernel with the provided name. | |
Friends | |
class | kernel |
program | ( | ) | [inline] |
program | ( | viennacl::ocl::handle< cl_program > const & | h, | |
std::string const & | prog_name = std::string() | |||
) | [inline] |
viennacl::ocl::kernel& add_kernel | ( | std::string const & | kernel_name | ) | [inline] |
Adds a kernel to the program.
viennacl::ocl::kernel& get_kernel | ( | std::string const & | name | ) | [inline] |
Returns the kernel with the provided name.
std::string const& name | ( | ) | const [inline] |
viennacl::ocl::program& operator= | ( | const program & | other | ) | [inline] |
friend class kernel [friend] |