29 #ifndef _CCL_COMMON_H_
30 #define _CCL_COMMON_H_
35 #include <glib/gprintf.h>
37 #include "ccl_export.h"
40 #define CCL_VERSION_MAJOR 2
43 #define CCL_VERSION_MINOR 1
46 #define CCL_VERSION_PATCH 0
49 #define CCL_VERSION_TWEAK ""
52 #define CCL_VERSION_STRING "v2.1.0"
55 #define CCL_VERSION_STRING_FULL "v2.1.0+1.0000000"
59 #define CCL_VERSION_STRING_FINAL "v2.1.0"
66 #if defined CL_VERSION_2_2
67 #define CCL_OPENCL_VERSION "2.2"
68 #elif defined CL_VERSION_2_1
69 #define CCL_OPENCL_VERSION "2.1"
70 #elif defined CL_VERSION_2_0
71 #define CCL_OPENCL_VERSION "2.0"
72 #elif defined CL_VERSION_1_2
73 #define CCL_OPENCL_VERSION "1.2"
74 #elif defined CL_VERSION_1_1
75 #define CCL_OPENCL_VERSION "1.1"
76 #elif defined CL_VERSION_1_0
77 #define CCL_OPENCL_VERSION "1.0"
79 #error "OpenCL version is not defined"
83 #define CCL_COMPILER "GNU"
86 #define CCL_UNUSED(x) (void)(x)
320 #define CCL_ERROR ccl_error_quark()
324 #define CCL_OCL_ERROR ccl_ocl_error_quark()
Invalid data passed to a function or returned from function.
GQuark ccl_ocl_error_quark(void)
Resolves to error category identifying string, in this case an error in the OpenCL library...
Request information about device objects.
void ccl_strv_clear(char **str_array)
Frees a NULL-terminated array of strings, as well as each string it contains.
Request information about event profiling.
Request information about platform objects.
enum ccl_info CCLInfo
Type of information to obtain using ccl_wrapper_get_info(), ccl_wrapper_get_info_value() and ccl_wrap...
Request information about queue objects.
Request information about pipe objects.
Enumeration termination marker.
The context wrapper class.
Base class for memory object wrappers, i.e., CCLBuffer and CCLImage.
Command queue wrapper class.
enum ccl_class CCLClass
Class or type of wrapped OpenCL object.
GQuark ccl_error_quark(void)
Resolves to error category identifying string, in this case an error in cf4ocl.
void ccl_common_version_print(const char *exec_name)
Print executable version.
Base class for wrappers which contain devices, i.e., CCLPlatform, CCLProgram and CCLContext.
The requested OpenCL device was not found.
enum ccl_error_code CCLErrorCode
Error codes.
Base class for all OpenCL wrappers.
Request information about program builds.
Request information about sampler objects.
Invalid function arguments.
Request information about kernel work-groups.
Request information about image objects.
Request information about kernel sub-groups.
Object information is unavailable.
Header for normalizing OpenCL versions within cf4ocl.
void ccl_err_clear(CCLErr **err)
Releases a CCLErr object and set is to NULL.
Request information about kernel objects.
ccl_info
Type of information to obtain using ccl_wrapper_get_info(), ccl_wrapper_get_info_value() and ccl_wrap...
Request information about memory objects.
ccl_error_code
Error codes.
GError CCLErr
Error handling class.
Request information about event objects.
Request information about kernel arguments.
No object, enumeration termination marker.
Request information about program objects.
Error writing to a stream.
ccl_class
Class or type of wrapped OpenCL object.
Request information about context objects.
The operation is not supported by the version of the selected OpenCL platform.