1 #ifndef VIENNACL_OCL_PROGRAM_HPP_ 
    2 #define VIENNACL_OCL_PROGRAM_HPP_ 
   44   typedef std::vector<tools::shared_ptr<viennacl::ocl::kernel> >    kernel_container_type;
 
   49     : handle_(program_handle, program_context), p_context_(&program_context), name_(prog_name) {}
 
   51   program(
program const & other) : handle_(other.handle_), p_context_(other.p_context_), name_(other.name_), kernels_(other.kernels_) {      }
 
   55     handle_ = other.handle_;
 
   57     p_context_ = other.p_context_;
 
   58     kernels_ = other.kernels_;
 
   64   std::string 
const & 
name()
 const { 
return name_; }
 
   79   kernel_container_type kernels_;
 
This file provides the forward declarations for the OpenCL layer of ViennaCL. 
viennacl::ocl::kernel & add_kernel(cl_kernel kernel_handle, std::string const &kernel_name)
Adds a kernel to the program. 
Represents an OpenCL kernel within ViennaCL. 
const viennacl::ocl::handle< cl_program > & handle() const 
Manages an OpenCL context and provides the respective convenience functions for creating buffers...
Implementation of a shared pointer class (cf. std::shared_ptr, boost::shared_ptr). Will be used until C++11 is widely available. 
Implementation of a smart-pointer-like class for handling OpenCL handles. 
program(cl_program program_handle, viennacl::ocl::context const &program_context, std::string const &prog_name=std::string())
std::string const & name() const 
Wrapper class for an OpenCL program. 
viennacl::ocl::program & operator=(const program &other)
Representation of an OpenCL kernel in ViennaCL. 
program(program const &other)
viennacl::ocl::context const * p_context() const 
viennacl::ocl::kernel & get_kernel(std::string const &name)
Returns the kernel with the provided name.