cf4ocl (C Framework for OpenCL)
v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
|
Definition of a wrapper class and its methods for OpenCL context objects. More...
Go to the source code of this file.
Macros | |
#define | ccl_context_get_info(ctx, param_name, err) |
Get a CCLWrapperInfo context information object. More... | |
#define | ccl_context_get_info_array(ctx, param_name, param_type, err) |
Macro which returns an array context information value. More... | |
#define | ccl_context_get_info_scalar(ctx, param_name, param_type, err) |
Macro which returns a scalar context information value. More... | |
#define | ccl_context_new_accel(err) |
Creates a context wrapper for an Accelerator device. More... | |
#define | ccl_context_new_any(err) ccl_context_new_from_indep_filter(NULL, NULL, (err)) |
Creates a context wrapper for the first found device(s). More... | |
#define | ccl_context_new_cpu(err) |
Creates a context wrapper for a CPU device. More... | |
#define | ccl_context_new_from_dep_filter(filter, data, err) ccl_context_new_from_filter(CCL_DEVSEL_DEP, (filter), (data), (err)) |
Creates a context wrapper using one dependent device filter specified in the function parameters. More... | |
#define | ccl_context_new_from_device_index(data, err) ccl_context_new_from_dep_filter(ccl_devsel_dep_index, (data), (err)) |
Creates a context wrapper using a device selected by its index. More... | |
#define | ccl_context_new_from_devices(num_devices, devices, err) |
Creates a context wrapper given an array of CCLDevice wrappers. More... | |
#define | ccl_context_new_from_filters(filters, err) |
Create a new context wrapper object selecting devices using the given set of filters. More... | |
#define | ccl_context_new_from_indep_filter(filter, data, err) ccl_context_new_from_filter(CCL_DEVSEL_INDEP, (filter), (data), (err)) |
Creates a context wrapper using one independent device filter specified in the function parameters. More... | |
#define | ccl_context_new_from_menu(err) ccl_context_new_from_dep_filter(ccl_devsel_dep_menu, NULL, (err)) |
Creates a context wrapper from a device selected by the user from a menu. More... | |
#define | ccl_context_new_from_menu_full(data, err) ccl_context_new_from_dep_filter(ccl_devsel_dep_menu, (data), (err)) |
Creates a context wrapper using a device which the user selects from a menu. More... | |
#define | ccl_context_new_gpu(err) |
Creates a context wrapper for a GPU device. More... | |
#define | ccl_context_ref(ctx) ccl_wrapper_ref((CCLWrapper*) ctx) |
Increase the reference count of the context wrapper object. More... | |
#define | ccl_context_unref(ctx) ccl_context_destroy(ctx) |
Alias to ccl_context_destroy(). More... | |
#define | ccl_context_unwrap(ctx) ((cl_context) ccl_wrapper_unwrap((CCLWrapper*) ctx)) |
Get the OpenCL context object. More... | |
Typedefs | |
typedef void(* | ccl_context_callback )(const char *errinfo, const void *private_info, size_t cb, void *user_data) |
A callback function used by the OpenCL implementation to report information on errors during context creation as well as errors that occur at runtime in this context. More... | |
Definition of a wrapper class and its methods for OpenCL context objects.
Definition in file ccl_context_wrapper.h.