1 /* clinfo output options */
8 CLINFO_HUMAN = 1, /* more human readable */
9 CLINFO_RAW = 2, /* property-by-property */
10 CLINFO_BOTH = CLINFO_HUMAN | CLINFO_RAW
13 /* Specify how we should handle conditional properties. */
14 enum cond_prop_modes {
15 COND_PROP_CHECK = 0, /* default: check, skip if invalid */
16 COND_PROP_TRY = 1, /* try, don't print an error if invalid */
17 COND_PROP_SHOW = 2 /* try, print an error if invalid */
22 enum output_modes mode;
23 enum cond_prop_modes cond;
25 /* Specify that we should only print information about a specific device */
30 /* Specify that we should only print information about a specific property */
33 /* Specify if we should only be listing the platform and devices;
34 * can be done in both human and raw mode, and only the platform
35 * and device names (and number) will be shown
36 * TODO check if terminal supports UTF-8 and use Unicode line-drawing
37 * for the tree in list mode
40 cl_bool detailed; // !brief
42 cl_bool null_platform;
44 /* JSON output for RAW */
47 /* clGetDeviceInfo returns CL_INVALID_VALUE both for unknown properties
48 * and when the destination variable is too small. Set the following to CL_TRUE
49 * to check which one is the case