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

(f2213ed)

Implementation of a wrapper type and related functions for a OpenCL kernel arguments. More...

Include dependency graph for ccl_kernel_arg.c:

Go to the source code of this file.

Functions

CCLArgccl_arg_new (void *value, size_t size)
 Create a new kernel argument. More...
 

Variables

const CCLArgccl_arg_skip = &arg_skip
 Use this constant to skip kernel arguments in the ccl_kernel_set_args(), ccl_kernel_set_args_v(), ccl_kernel_set_args_and_enqueue_ndrange() and ccl_kernel_set_args_and_enqueue_ndrange_v() functions.
 

Detailed Description

Implementation of a wrapper type and related functions for a OpenCL kernel arguments.

Author
Nuno Fachada
Date
2016

Definition in file ccl_kernel_arg.c.

Function Documentation

CCLArg* ccl_arg_new ( void *  value,
size_t  size 
)

Create a new kernel argument.

Arguments created with this function can local, private or NULL. Client code shouldn't directly use this function, but use instead ccl_arg_priv(), ccl_arg_local() or ccl_arg_full().

Parameters
[in]valueArgument value.
[in]sizeArgument size.
Returns
A new kernel argument.

Definition at line 76 of file ccl_kernel_arg.c.