OpenCL.
More...
#include <base/opencl/OpenCL.h>
|
enum | Type { TYPE_CPU,
TYPE_GPU
} |
|
enum | { FLAG_CPU = 1,
FLAG_GPU = 2,
FLAG_ANY = FLAG_CPU | FLAG_GPU
} |
|
enum | Access { ACCESS_READ_ONLY,
ACCESS_WRITE_ONLY
} |
|
typedef Reference< HandleImpl > | Handle |
|
typedef void * | DeviceId |
|
|
bool | createContext (Type type) |
|
bool | createContext (DeviceId device) |
|
bool | isValid () const noexcept |
|
Queue | createCommandQueue (MemorySize size) |
|
Program | createProgram (const char *source) |
|
Kernel | createKernel () |
|
Queue | createQueue () |
|
void * | createBuffer (MemorySize size) |
|
OpenCL.
OpenCL context.
- Version
- 1.0
◆ getDeviceInfoBool()
static bool OpenCL::getDeviceInfoBool |
( |
DeviceId |
device | ) |
|
|
static |
Returns bool value of the given device.
◆ getDeviceInfoUInt()
static uint32 OpenCL::getDeviceInfoUInt |
( |
DeviceId |
device | ) |
|
|
static |
Returns uint value of the given device.
◆ getDeviceName()
static String OpenCL::getDeviceName |
( |
DeviceId |
device | ) |
|
|
static |
Returns the name of the given device.
◆ getDevices()
static Array<DeviceId> OpenCL::getDevices |
( |
unsigned int |
flags = FLAG_ANY | ) |
|
|
static |
Returns the available devices.
◆ getNumberOfDevices()
static unsigned int OpenCL::getNumberOfDevices |
( |
| ) |
|
|
static |
Returns the number of devices.
◆ isValid()
bool OpenCL::isValid |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if context is valid.