|
cf4ocl (C Framework for OpenCL)
v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
|
Common cf4ocl definitions. More...


Go to the source code of this file.
Macros | |
| #define | CCL_COMPILER "GNU" |
| Compiler used to compile cf4ocl. More... | |
| #define | CCL_ERROR ccl_error_quark() |
| Resolves to error category identifying string, in this case an error in cf4ocl. More... | |
| #define | CCL_OCL_ERROR ccl_ocl_error_quark() |
| Resolves to error category identifying string, in this case an error in the OpenCL library. More... | |
| #define | CCL_OPENCL_VERSION "2.1" |
| Version of OpenCL headers used to compile cf4ocl. | |
| #define | CCL_UNUSED(x) (void)(x) |
| Macro to avoid warning in unused variables. More... | |
| #define | CCL_VERSION_MAJOR 2 |
| Major cf4ocl version digit. More... | |
| #define | CCL_VERSION_MINOR 1 |
| Minor cf4ocl version digit. More... | |
| #define | CCL_VERSION_PATCH 0 |
| Patch/micro cf4ocl version digit. More... | |
| #define | CCL_VERSION_STRING "v2.1.0" |
| cf4ocl version string in vx.x.x format. More... | |
| #define | CCL_VERSION_STRING_FINAL "v2.1.0" |
| Final cf4ocl version string, either CCL_VERSION_STRING for stable versions or cf4ocl2_VERSION_STRING_FULL for development versions. More... | |
| #define | CCL_VERSION_STRING_FULL "v2.1.0+1.0000000" |
| Full cf4ocl version string, includes commit SHA, etc. More... | |
| #define | CCL_VERSION_TWEAK "" |
| Tweak cf4ocl version string. More... | |
Typedefs | |
| typedef struct ccl_buffer | CCLBuffer |
| Buffer wrapper class. | |
| typedef enum ccl_class | CCLClass |
| Class or type of wrapped OpenCL object. | |
| typedef struct ccl_context | CCLContext |
| Context wrapper class. | |
| typedef struct ccl_dev_container | CCLDevContainer |
| Base class for wrappers which contain devices, i.e., CCLPlatform, CCLProgram and CCLContext. More... | |
| typedef struct ccl_device | CCLDevice |
| Device wrapper class. | |
| typedef GError | CCLErr |
| Error handling class. More... | |
| typedef enum ccl_error_code | CCLErrorCode |
| Error codes. | |
| typedef struct ccl_event | CCLEvent |
| Event wrapper class. | |
| typedef struct ccl_image | CCLImage |
| Image wrapper class. | |
| typedef enum ccl_info | CCLInfo |
| Type of information to obtain using ccl_wrapper_get_info(), ccl_wrapper_get_info_value() and ccl_wrapper_get_info_size(). More... | |
| typedef struct ccl_kernel | CCLKernel |
| Kernel wrapper class. | |
| typedef struct ccl_memobj | CCLMemObj |
| Base class for memory object wrappers, i.e., CCLBuffer and CCLImage. | |
| typedef struct ccl_platform | CCLPlatform |
| Platform wrapper class. | |
| typedef struct ccl_platforms | CCLPlatforms |
| Class which represents the OpenCL platforms available in the system. | |
| typedef struct ccl_program | CCLProgram |
| Program wrapper class. | |
| typedef struct ccl_queue | CCLQueue |
| Command queue wrapper class. | |
| typedef struct ccl_sampler | CCLSampler |
| Sampler wrapper class. | |
| typedef struct ccl_wrapper | CCLWrapper |
| Base class for all OpenCL wrappers. | |
Functions | |
| void | ccl_common_version_print (const char *exec_name) |
| Print executable version. More... | |
| void | ccl_err_clear (CCLErr **err) |
Releases a CCLErr object and set is to NULL. More... | |
| GQuark | ccl_error_quark (void) |
| Resolves to error category identifying string, in this case an error in cf4ocl. More... | |
| GQuark | ccl_ocl_error_quark (void) |
| Resolves to error category identifying string, in this case an error in the OpenCL library. More... | |
| void | ccl_strv_clear (char **str_array) |
Frees a NULL-terminated array of strings, as well as each string it contains. More... | |
| #define CCL_COMPILER "GNU" |
Compiler used to compile cf4ocl.
Definition at line 83 of file ccl_common.h.
| #define CCL_ERROR ccl_error_quark() |
Resolves to error category identifying string, in this case an error in cf4ocl.
Definition at line 320 of file ccl_common.h.
| #define CCL_OCL_ERROR ccl_ocl_error_quark() |
Resolves to error category identifying string, in this case an error in the OpenCL library.
Definition at line 324 of file ccl_common.h.
| #define CCL_UNUSED | ( | x | ) | (void)(x) |
Macro to avoid warning in unused variables.
Definition at line 86 of file ccl_common.h.
| #define CCL_VERSION_MAJOR 2 |
Major cf4ocl version digit.
Definition at line 40 of file ccl_common.h.
| #define CCL_VERSION_MINOR 1 |
Minor cf4ocl version digit.
Definition at line 43 of file ccl_common.h.
| #define CCL_VERSION_PATCH 0 |
Patch/micro cf4ocl version digit.
Definition at line 46 of file ccl_common.h.
| #define CCL_VERSION_STRING "v2.1.0" |
cf4ocl version string in vx.x.x format.
Definition at line 52 of file ccl_common.h.
| #define CCL_VERSION_STRING_FINAL "v2.1.0" |
Final cf4ocl version string, either CCL_VERSION_STRING for stable versions or cf4ocl2_VERSION_STRING_FULL for development versions.
Definition at line 59 of file ccl_common.h.
| #define CCL_VERSION_STRING_FULL "v2.1.0+1.0000000" |
Full cf4ocl version string, includes commit SHA, etc.
Definition at line 55 of file ccl_common.h.
| #define CCL_VERSION_TWEAK "" |
Tweak cf4ocl version string.
Definition at line 49 of file ccl_common.h.
| typedef struct ccl_dev_container CCLDevContainer |
Base class for wrappers which contain devices, i.e., CCLPlatform, CCLProgram and CCLContext.
This class extends CCLWrapper.
Definition at line 175 of file ccl_common.h.
| typedef GError CCLErr |
Error handling class.
This class is a wrapper for the GError structure from GLib, and has the following fields:
Definition at line 291 of file ccl_common.h.
Type of information to obtain using ccl_wrapper_get_info(), ccl_wrapper_get_info_value() and ccl_wrapper_get_info_size().
This enumeration is used by the ccl_*_get_info() macros and should rarely be used in client code.
| enum ccl_class |
Class or type of wrapped OpenCL object.
Definition at line 91 of file ccl_common.h.
| enum ccl_error_code |
Error codes.
Definition at line 296 of file ccl_common.h.
| enum ccl_info |
Type of information to obtain using ccl_wrapper_get_info(), ccl_wrapper_get_info_value() and ccl_wrapper_get_info_size().
This enumeration is used by the ccl_*_get_info() macros and should rarely be used in client code.
Definition at line 124 of file ccl_common.h.
| void ccl_common_version_print | ( | const char * | exec_name | ) |
Print executable version.
| [in] | exec_name | Executable name. |
Definition at line 37 of file ccl_common.c.
| void ccl_err_clear | ( | CCLErr ** | err | ) |
Releases a CCLErr object and set is to NULL.
If err or *err is NULL, does nothing. Otherwise, releases memory occupied by *err and sets *err to NULL.
| [in] | err | A CCLErr return location. |
Definition at line 73 of file ccl_common.c.
| GQuark ccl_error_quark | ( | void | ) |
Resolves to error category identifying string, in this case an error in cf4ocl.
Definition at line 85 of file ccl_common.c.
| GQuark ccl_ocl_error_quark | ( | void | ) |
Resolves to error category identifying string, in this case an error in the OpenCL library.
Definition at line 97 of file ccl_common.c.
| void ccl_strv_clear | ( | char ** | str_array | ) |
Frees a NULL-terminated array of strings, as well as each string it contains.
| [in] | str_array | A NULL-terminated array of strings to free. |
Definition at line 57 of file ccl_common.c.