|
|
AFAPI af_err | afcl_get_context (cl_context *ctx, const bool retain) |
| Get a handle to ArrayFire's OpenCL context. More...
|
|
AFAPI af_err | afcl_get_queue (cl_command_queue *queue, const bool retain) |
| Get a handle to ArrayFire's OpenCL command queue. More...
|
|
AFAPI af_err | afcl_get_device_id (cl_device_id *id) |
| Get the device ID for ArrayFire's current active device. More...
|
|
AFAPI af_err | afcl_set_device_id (cl_device_id id) |
| Set ArrayFire's active device based on id of type cl_device_id. More...
|
|
AFAPI af_err | afcl_add_device_context (cl_device_id dev, cl_context ctx, cl_command_queue que) |
| Push user provided device control constructs into the ArrayFire device manager pool. More...
|
|
AFAPI af_err | afcl_set_device_context (cl_device_id dev, cl_context ctx) |
| Set active device using cl_context and cl_device_id. More...
|
|
AFAPI af_err | afcl_delete_device_context (cl_device_id dev, cl_context ctx) |
| Remove the user provided device control constructs from the ArrayFire device manager pool. More...
|
|
AFAPI af_err | afcl_get_device_type (afcl_device_type *res) |
| Get the type of the current device. More...
|
|
AFAPI af_err | afcl_get_platform (afcl_platform *res) |
| Get the platform of the current device. More...
|
|
typedef afcl_device_type | deviceType |
|
typedef afcl_platform | platform |
|
static cl_context | getContext (bool retain=false) |
| Get a handle to ArrayFire's OpenCL context. More...
|
|
static cl_command_queue | getQueue (bool retain=false) |
| Get a handle to ArrayFire's OpenCL command queue. More...
|
|
static cl_device_id | getDeviceId () |
| Get the device ID for ArrayFire's current active device. More...
|
|
static void | setDeviceId (cl_device_id id) |
| Set ArrayFire's active device based on id of type cl_device_id. More...
|
|
static void | addDevice (cl_device_id dev, cl_context ctx, cl_command_queue que) |
| Push user provided device control constructs into the ArrayFire device manager pool. More...
|
|
static void | setDevice (cl_device_id dev, cl_context ctx) |
| Set active device using cl_context and cl_device_id. More...
|
|
static void | deleteDevice (cl_device_id dev, cl_context ctx) |
| Remove the user provided device control constructs from the ArrayFire device manager pool. More...
|
|
static deviceType | getDeviceType () |
| Get the type of the current device. More...
|
|
static platform | getPlatform () |
| Get the type of the current device. More...
|
|
static af::array | array (af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false) |
| Create an af::array object from an OpenCL cl_mem buffer. More...
|
|
static af::array | array (dim_t dim0, cl_mem buf, af::dtype type, bool retain=false) |
| Create an af::array object from an OpenCL cl_mem buffer. More...
|
|
static af::array | array (dim_t dim0, dim_t dim1, cl_mem buf, af::dtype type, bool retain=false) |
| Create an af::array object from an OpenCL cl_mem buffer. More...
|
|
static af::array | array (dim_t dim0, dim_t dim1, dim_t dim2, cl_mem buf, af::dtype type, bool retain=false) |
| Create an af::array object from an OpenCL cl_mem buffer. More...
|
|
static af::array | array (dim_t dim0, dim_t dim1, dim_t dim2, dim_t dim3, cl_mem buf, af::dtype type, bool retain=false) |
| Create an af::array object from an OpenCL cl_mem buffer. More...
|
|