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

(dad7583)

Utility to query OpenCL platforms and devices. More...

Include dependency graph for ccl_devinfo.c:

Go to the source code of this file.

Macros

#define CCL_DEVINFO_DESCRIPTION
 Program description. More...
 
#define CCL_DEVINFO_MAXINFOLEN   500
 Maximum length of device information output, per parameter. More...
 
#define CCL_DEVINFO_OUT   stdout
 Default device information output stream. More...
 

Functions

void ccl_devinfo_args_parse (int argc, char *argv[], CCLErr **err)
 Parse and verify command line arguments. More...
 
void ccl_devinfo_show_device_info_all (CCLDevice *d)
 Show all available device information. More...
 
void ccl_devinfo_show_device_info_basic (CCLDevice *d)
 Show basic device information. More...
 
void ccl_devinfo_show_device_info_custom (CCLDevice *d)
 Show user specified device information. More...
 
void ccl_devinfo_show_platform_info (CCLPlatform *p, guint idx)
 Show platform information. More...
 
int main (int argc, char *argv[])
 Device info main program function. More...
 

Detailed Description

Utility to query OpenCL platforms and devices.

Author
Nuno Fachada
Date
2016

Definition in file ccl_devinfo.c.

Macro Definition Documentation

#define CCL_DEVINFO_DESCRIPTION
Value:
"Utility for querying OpenCL " \
"platforms and devices"

Program description.

Definition at line 131 of file ccl_devinfo.c.

#define CCL_DEVINFO_MAXINFOLEN   500

Maximum length of device information output, per parameter.

Definition at line 135 of file ccl_devinfo.c.

#define CCL_DEVINFO_OUT   stdout

Default device information output stream.

Definition at line 123 of file ccl_devinfo.c.

Function Documentation

void ccl_devinfo_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, or NULL if error reporting is to be ignored.

Definition at line 203 of file ccl_devinfo.c.

void ccl_devinfo_show_device_info_all ( CCLDevice d)

Show all available device information.

Parameters
[in]dDevice wrapper object.

Definition at line 309 of file ccl_devinfo.c.

void ccl_devinfo_show_device_info_basic ( CCLDevice d)

Show basic device information.

Parameters
[in]dDevice wrapper object.

Definition at line 443 of file ccl_devinfo.c.

void ccl_devinfo_show_device_info_custom ( CCLDevice d)

Show user specified device information.

Parameters
[in]dDevice wrapper object.

Definition at line 361 of file ccl_devinfo.c.

void ccl_devinfo_show_platform_info ( CCLPlatform p,
guint  idx 
)

Show platform information.

Parameters
[in]pPlatform wrapper object.
[in]idxPlatform index.

Definition at line 246 of file ccl_devinfo.c.

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

Device info 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.

Definition at line 508 of file ccl_devinfo.c.