PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | List of all members
PIOpenCL::Program Class Reference

Compiled OpenCL program that owns discovered kernels. More...

#include <piopencl.h>

Public Member Functions

 ~Program ()
 Destroys the program and its kernels.
 
Contextcontext () const
 Returns the context that created the program.
 
const PIStringsourceCode () const
 Returns the original source code used for compilation.
 
Kernelkernel (int index=0) const
 Returns the kernel at the given index.
 
const PIVector< Kernel * > & kernels () const
 Returns all kernels created from the program.
 

Detailed Description

Compiled OpenCL program that owns discovered kernels.