This extension enables the device side printf built in function for OpenCL C versions prior to 1.2. It also extends the cl_context_properties
enumeration to allow a user defined printf callback and/or printf buffer size.
The printf built in function should be used for debugging purposes only and may have a significant negative impact on the performance of an
OpenCL application.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_PRINTF_BUFFERSIZE_ARM
Accepted by the |
| public static final int | CL_PRINTF_CALLBACK_ARM
Accepted by the |
| Access | Constructor and Description |
|---|---|
| private |
| CL_PRINTF_BUFFERSIZE_ARM | back to summary |
|---|---|
| public static final int CL_PRINTF_BUFFERSIZE_ARM Accepted by the Property value: Specifies the size of printf buffer allocations to use within the driver. A printf buffer is allocated per device per context, within a context the buffer will be shared between kernels executing on a device. The implementation is free to round up or ignore this value. If this property is not specified an implementation defined default size will be chosen. For OpenCL driver versions prior to OpenCL 1.2 this value will
be 1 MiB. For driver versions of OpenCL 1.2 or greater this value is defined by the | |
| CL_PRINTF_CALLBACK_ARM | back to summary |
|---|---|
| public static final int CL_PRINTF_CALLBACK_ARM Accepted by the Property value: Specifies a pointer to function to be invoked when printf data is available. Upon invocation the arguments are set to the following values.
If this property is not specified, no callback will be registered and any printf output from a kernel will be discarded. | |
| ARMPrintf | back to summary |
|---|---|
| private ARMPrintf() | |