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_platform Struct Reference

The platform wrapper class. More...

Inheritance diagram for ccl_platform:
Inheritance graph
Collaboration diagram for ccl_platform:
Collaboration graph

Public Member Functions

void ccl_platform_destroy (CCLPlatform *platf)
 Decrements the reference count of the platform wrapper object. More...
 
CCLDevice *const * ccl_platform_get_all_devices (CCLPlatform *platf, CCLErr **err)
 Get all device wrappers in platform. More...
 
CCLDeviceccl_platform_get_device (CCLPlatform *platf, cl_uint index, CCLErr **err)
 Get CCLDevice wrapper at given index. More...
 
cl_uint ccl_platform_get_num_devices (CCLPlatform *platf, CCLErr **err)
 Return number of devices in platform. More...
 
cl_uint ccl_platform_get_opencl_version (CCLPlatform *platf, CCLErr **err)
 Get the OpenCL version of this platform. More...
 
CCLPlatformccl_platform_new_from_device (CCLDevice *dev, CCLErr **err)
 Get the platform wrapper for the given device wrapper. More...
 
CCLPlatformccl_platform_new_wrap (cl_platform_id platform)
 Get the platform wrapper for the given OpenCL platform. More...
 
- Public Member Functions inherited from ccl_wrapper
CCLWrapperInfoccl_wrapper_get_info (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get information about any wrapped OpenCL object. More...
 
size_t ccl_wrapper_get_info_size (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get information size. More...
 
void * ccl_wrapper_get_info_value (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get pointer to information value. More...
 
cl_bool ccl_wrapper_memcheck ()
 Debug function which checks if memory allocated by wrappers has been properly freed. More...
 
void ccl_wrapper_ref (CCLWrapper *wrapper)
 Increase the reference count of the wrapper object. More...
 
int ccl_wrapper_ref_count (CCLWrapper *wrapper)
 Returns the wrapper object reference count. More...
 
void * ccl_wrapper_unwrap (CCLWrapper *wrapper)
 Get the wrapped OpenCL object. More...
 

Detailed Description

The platform wrapper class.

Examples:
list_devices.c.

Definition at line 40 of file ccl_platform_wrapper.c.