29 #ifndef _CCL_DEVICE_QUERY_H_
30 #define _CCL_DEVICE_QUERY_H_
59 size_t size,
const char* units);
95 const char*
const units;
135 #define ccl_devquery_type2str(type) \
136 (((type) & CL_DEVICE_TYPE_CPU) ? "CPU" : \
137 (((type) & CL_DEVICE_TYPE_GPU) ? "GPU" : \
138 (((type) & CL_DEVICE_TYPE_ACCELERATOR) ? "Accelerator" : \
139 (((type) & CL_DEVICE_TYPE_CUSTOM) ? "Custom" : \
Maps a string to a cl_device_info bitfield.
const ccl_devquery_format format
Output formatting function.
Definition of a wrapper class and its methods for OpenCL device objects.
struct ccl_devquery_map CCLDevQueryMap
Maps a string to a cl_device_info bitfield.
const CCLDevQueryMap * ccl_devquery_prefix(const char *prefix, int *size)
Get a pointer to the first device information parameter which has the given prefix.
const cl_device_info device_info
CL device information bitfield.
Header for normalizing OpenCL versions within cf4ocl.
const char *const description
Long description of parameter.
Class which represents information about a wrapped OpenCL object.
const int ccl_devquery_info_map_size
Size of parameter information map.
cl_device_info ccl_devquery_name(const char *name)
Return a cl_device_info object given its name.
gchar * ccl_devquery_get_prefix_final(const char *prefix)
Get a final device info prefix in the same format as kept in the ccl_devquery_info_map.
Common cf4ocl definitions.
const char *const param_name
Parameter name string.
Convert OpenCL error codes to readable strings (function header).
const CCLDevQueryMap ccl_devquery_info_map[]
Map of parameter name strings to respective cl_device_info bitfields, long description string...
const CCLDevQueryMap * ccl_devquery_match(const char *substr, int *idx)
Search for a device information parameter by matching part of its name.
const char *const units
Parameter units suffix.
char *(* ccl_devquery_format)(CCLWrapperInfo *info, char *out, size_t size, const char *units)
Output formatting function.