SkePU(integratedwithStarPU)
0.8.1
|
A class representing an OpenCL device. More...
#include <device_cl.h>
Public Member Functions | |
Device_CL (cl_device_id id, cl_device_type type, cl_context context) | |
~Device_CL () | |
size_t | getMaxBlockSize () const |
cl_uint | getNumComputeUnits () const |
cl_ulong | getGlobalMemSize () const |
cl_ulong | getSharedMemPerBlock () const |
int | getMaxThreads () const |
size_t | getMaxBlocks () const |
const cl_context & | getContext () const |
const cl_command_queue & | getQueue () const |
cl_device_type | getType () const |
cl_device_id | getDeviceID () const |
A class representing an OpenCL device.
This class represents one OpenCL device which can be used to execute the skeletons on if OpenCL is used as backend. Stores various properties about the device and provides functions that return them. As actual OpenCL devices are managed by StarPU in this translation, so this class merely acts as a wrapper, encapsulating the properties obtained by StarPU. Also contains a OpenCL context and queue.
|
inline |
The constructor creates a device from an ID, device type (should be GPU in this version) and a context. It gets all the properties and creates a command-queue.
id | Device ID for the device that is to be created. |
type | The OpenCL device type. |
context | A valid OpenCL context. |
References getMaxBlockSize().
|
inline |
The destructor releases the OpenCL queue and context.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |