![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Entry point for the OpenCL wrapper API. More...
#include <piopencl.h>
Classes | |
| class | Buffer |
| OpenCL buffer wrapper optionally bound to a host container. More... | |
| class | Context |
| OpenCL context wrapper that owns created programs and buffers. More... | |
| struct | Device |
| Description of a discovered OpenCL device. More... | |
| class | Kernel |
| OpenCL kernel wrapper with reflected argument metadata. More... | |
| struct | KernelArg |
| Reflected description of a kernel argument. More... | |
| struct | Platform |
| Description of an OpenCL platform and its devices. More... | |
| class | Program |
| Compiled OpenCL program that owns discovered kernels. More... | |
Public Types | |
| enum | AddressQualifier { AddressGlobal , AddressLocal , AddressConstant , AddressPrivate } |
| Address space qualifier of a kernel argument. More... | |
| enum | AccessQualifier { AccessReadOnly , AccessWriteOnly , AccessReadWrite , AccessNone } |
| Access qualifier of an image or memory argument. More... | |
| enum | Direction |
| Intended data flow direction for buffers. | |
| enum | TypeQualifier { TypeConst , TypeRestrict , TypeVolatile , TypeNone } |
| Type qualifier of a kernel argument. More... | |
| enum | ArgType { } |
| Scalar argument type recognized by the wrapper. More... | |
| typedef PIVector< Device > | DeviceList |
| List of OpenCL devices. | |
Static Public Member Functions | |
| static void | init () |
| Initializes platform and device discovery. | |
| static const PIVector< Platform > & | platforms () |
| Returns discovered OpenCL platforms. | |
| static const PIVector< Device > | devices () |
| Returns devices from all discovered platforms. | |
| static Device | deviceByID (void *id) |
| Returns a device description for the given native device handle. | |
| static PIString | prepareProgram (const PIString &prog) |
| Prepares OpenCL source code before compilation. | |
Entry point for the OpenCL wrapper API.
| enum PIOpenCL::ArgType |
Scalar argument type recognized by the wrapper.