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

(dad7583)

Utility for offline compilation and linking of OpenCL kernels. More...

Include dependency graph for ccl_c.c:

Go to the source code of this file.

Functions

void ccl_c_args_parse (int argc, char *argv[], CCLErr **err)
 Parse and verify command line arguments. More...
 
void ccl_c_kernel_info_show (CCLProgram *prg, CCLDevice *dev, const char *kernel, CCLErr **err)
 Show kernel information. More...
 
int main (int argc, char *argv[])
 Kernel analyzer main program function. More...
 

Detailed Description

Utility for offline compilation and linking of OpenCL kernels.

Author
Nuno Fachada
Date
2016

Definition in file ccl_c.c.

Function Documentation

void ccl_c_args_parse ( int  argc,
char *  argv[],
CCLErr **  err 
)

Parse and verify command line arguments.

Parameters
[in]argcNumber of command line arguments.
[in]argvCommand line arguments.
[out]errReturn location for a CCLErr object.

Definition at line 188 of file ccl_c.c.

void ccl_c_kernel_info_show ( CCLProgram prg,
CCLDevice dev,
const char *  kernel,
CCLErr **  err 
)

Show kernel information.

Parameters
[in]prgProgram containing kernel.
[in]devDevice for which kernel was compiled.
[in]kernelKernel name.
[out]errReturn location for a CCLErr object.

Definition at line 233 of file ccl_c.c.

int main ( int  argc,
char *  argv[] 
)

Kernel analyzer main program function.

Parameters
[in]argcNumber of command line arguments.
[in]argvVector of command line arguments.
Returns
CCL_SUCCESS if program returns with no error, or another CCLErrorCode value otherwise.
Examples:
ca.c, canon.c, device_filter.c, image_fill.c, image_filter.c, and list_devices.c.

Definition at line 356 of file ccl_c.c.