Public Member Functions | Friends

program Class Reference

#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::programoperator= (const program &other)
std::string const & name () const
viennacl::ocl::kerneladd_kernel (std::string const &kernel_name)
 Adds a kernel to the program.
viennacl::ocl::kernelget_kernel (std::string const &name)
 Returns the kernel with the provided name.

Friends

class kernel

Constructor & Destructor Documentation

program (  )  [inline]
program ( viennacl::ocl::handle< cl_program > const &  h,
std::string const &  prog_name = std::string() 
) [inline]
program ( program const &  other  )  [inline]

Member Function Documentation

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]

Friends And Related Function Documentation

friend class kernel [friend]

The documentation for this class was generated from the following file: