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_common.c File Reference

(5a5cbdd)

Common cf4ocl implementations. More...

Include dependency graph for ccl_common.c:

Go to the source code of this file.

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 ()
 Resolves to error category identifying string, in this case an error in cf4ocl. More...
 
GQuark ccl_ocl_error_quark ()
 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...
 

Detailed Description

Common cf4ocl implementations.

Author
Nuno Fachada
Date
2016

Definition in file ccl_common.c.

Function Documentation

void ccl_common_version_print ( const char *  exec_name)

Print executable version.

Parameters
[in]exec_nameExecutable 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.

Parameters
[in]errA CCLErr return location.
See also
Error handling in cf4ocl.
The GLib and OpenCL dependencies.

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.

Returns
A GQuark structure defined by category identifying string, which identifies the error as a cf4ocl generated error.

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.

Returns
A GQuark structure defined by category identifying string, which identifies the error as 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.

Parameters
[in]str_arrayA NULL-terminated array of strings to free.
See also
The GLib and OpenCL dependencies.

Definition at line 57 of file ccl_common.c.