cf4ocl (C Framework for OpenCL)  v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ccl_device_wrapper.h File Reference

Definition of a wrapper class and its methods for OpenCL device objects. More...

Include dependency graph for ccl_device_wrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ccl_device_get_info(dev, param_name, err)
 Get a CCLWrapperInfo device information object. More...
 
#define ccl_device_get_info_array(dev, param_name, param_type, err)
 Macro which returns an array device information value. More...
 
#define ccl_device_get_info_scalar(dev, param_name, param_type, err)
 Macro which returns a scalar device information value. More...
 
#define ccl_device_ref(dev)   ccl_wrapper_ref((CCLWrapper*) dev)
 Increase the reference count of the device wrapper object. More...
 
#define ccl_device_unref(dev)   ccl_device_destroy(dev)
 Alias to ccl_device_destroy(). More...
 
#define ccl_device_unwrap(dev)   ((cl_device_id) ccl_wrapper_unwrap((CCLWrapper*) dev))
 Get the OpenCL device_id object. More...
 

Functions

cl_uint ccl_device_get_opencl_c_version (CCLDevice *dev, CCLErr **err)
 Get the OpenCL C version supported by the device. More...
 
cl_uint ccl_device_get_opencl_version (CCLDevice *dev, CCLErr **err)
 Get the OpenCL version supported by the device. More...
 

Detailed Description

Definition of a wrapper class and its methods for OpenCL device objects.

Author
Nuno Fachada
Date
2016

Definition in file ccl_device_wrapper.h.