Clover Git
OpenCL 1.1 software implementation
Functions

api_context.cpp File Reference

Contexts. More...

#include <CL/cl.h>
#include <core/context.h>
Include dependency graph for api_context.cpp:

Go to the source code of this file.

Functions

cl_context clCreateContext (const cl_context_properties *properties, cl_uint num_devices, const cl_device_id *devices, void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *), void *user_data, cl_int *errcode_ret)
cl_context clCreateContextFromType (const cl_context_properties *properties, cl_device_type device_type, void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *), void *user_data, cl_int *errcode_ret)
cl_int clRetainContext (cl_context context)
cl_int clReleaseContext (cl_context context)
cl_int clGetContextInfo (cl_context context, cl_context_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)

Detailed Description

Contexts.

Definition in file api_context.cpp.


Function Documentation

cl_context clCreateContext ( const cl_context_properties *  properties,
cl_uint  num_devices,
const cl_device_id *  devices,
void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *)  ,
void *  user_data,
cl_int *  errcode_ret 
)

Definition at line 39 of file api_context.cpp.

Referenced by clCreateContextFromType().

cl_context clCreateContextFromType ( const cl_context_properties *  properties,
cl_device_type  device_type,
void(CL_CALLBACK *pfn_notify)(const char *, const void *, size_t, void *)  ,
void *  user_data,
cl_int *  errcode_ret 
)

Definition at line 75 of file api_context.cpp.

References clCreateContext(), and clGetDeviceIDs().

cl_int clGetContextInfo ( cl_context  context,
cl_context_info  param_name,
size_t  param_value_size,
void *  param_value,
size_t *  param_value_size_ret 
)

Definition at line 116 of file api_context.cpp.

References Coal::Object::T_Context.

cl_int clReleaseContext ( cl_context  context)

Definition at line 104 of file api_context.cpp.

References Coal::Object::T_Context.

cl_int clRetainContext ( cl_context  context)

Definition at line 93 of file api_context.cpp.

References Coal::Object::T_Context.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines