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. 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 |
Referenced by skepu::DeviceMemPointer_CL< T >::DeviceMemPointer_CL(), and skepu::DeviceMemPointer_Matrix_CL< T >::DeviceMemPointer_Matrix_CL().
|
inline |
Referenced by skepu::Vector< T >::updateDevice_CL(), skepu::SparseMatrix< T >::updateDevice_CL(), skepu::Matrix< T >::updateDevice_CL(), and skepu::SparseMatrix< T >::updateDevice_Index_CL().
|
inline |
|
inline |
|
inline |
Referenced by Device_CL().
|
inline |
|
inline |
|
inline |
Referenced by skepu::DeviceMemPointer_CL< T >::DeviceMemPointer_CL(), skepu::ExecuteReduceOnADevice(), and skepu::Matrix< T >::transpose_CL().
|
inline |
|
inline |