cf4ocl (C Framework for OpenCL)
v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
|
The platforms module provides functionality for managing the OpenCL platforms available in the system. More...
Typedefs | |
typedef struct ccl_platforms | CCLPlatforms |
Class which represents the OpenCL platforms available in the system. | |
Functions | |
cl_uint | ccl_platforms_count (CCLPlatforms *platforms) |
Return number of OpenCL platforms found in CCLPlatforms object. More... | |
void | ccl_platforms_destroy (CCLPlatforms *platforms) |
Destroy a CCLPlatforms* object, including all underlying platforms, devices and data. More... | |
CCLPlatform * | ccl_platforms_get (CCLPlatforms *platforms, cl_uint index) |
Get platform wrapper object at given index. More... | |
CCLPlatforms * | ccl_platforms_new (CCLErr **err) |
Creates a new CCLPlatforms* object, which contains the list of OpenCL platforms available in the system. More... | |
The platforms module provides functionality for managing the OpenCL platforms available in the system.
The ccl_platforms_new() function returns a list of platforms available in the system. The ccl_platforms_count() can be used to get the number of platforms in the list, while the ccl_platforms_get() will return the platform.
Example:
cl_uint ccl_platforms_count | ( | CCLPlatforms * | platforms | ) |
Return number of OpenCL platforms found in CCLPlatforms object.
[in] | platforms | Object containing the OpenCL platforms. |
Definition at line 189 of file ccl_platforms.c.
void ccl_platforms_destroy | ( | CCLPlatforms * | platforms | ) |
Destroy a CCLPlatforms* object, including all underlying platforms, devices and data.
[in] | platforms | CCLPlatforms object to destroy. |
Definition at line 160 of file ccl_platforms.c.
CCLPlatform * ccl_platforms_get | ( | CCLPlatforms * | platforms, |
cl_uint | index | ||
) |
Get platform wrapper object at given index.
[in] | platforms | Object containing the OpenCL platforms. |
[in] | index | Index of platform to return. |
Definition at line 208 of file ccl_platforms.c.
CCLPlatforms * ccl_platforms_new | ( | CCLErr ** | err | ) |
Creates a new CCLPlatforms* object, which contains the list of OpenCL platforms available in the system.
[out] | err | Return location for a CCLErr object, or NULL if error reporting is to be ignored. |
Definition at line 68 of file ccl_platforms.c.