aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/helpers.h
diff options
context:
space:
mode:
authorVidhya Sudhan Loganathan <vidhyasudhan.loganathan@arm.com>2018-04-10 12:23:22 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commiteb8a399ba655b85c6854676832eb11b0af4108fe (patch)
tree9d3c6d9f4979036ce5d828a61eaaf0d3df2e566f /src/core/CL/cl_kernels/helpers.h
parent3ebef32816435516f68cefba689dba7216464154 (diff)
downloadComputeLibrary-eb8a399ba655b85c6854676832eb11b0af4108fe.tar.gz
COMPMID-994 : Check cl_arm_printf is supported in the CLScheduler
Introduced static and dynamic checks before using printf vendor extension features (callbacks and buffers) Change-Id: Ib38cb3d8591bbb482d02a41918f4b52efde75267 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/126751 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/helpers.h')
-rw-r--r--src/core/CL/cl_kernels/helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/CL/cl_kernels/helpers.h b/src/core/CL/cl_kernels/helpers.h
index 02c6c4cc41..615c5188a1 100644
--- a/src/core/CL/cl_kernels/helpers.h
+++ b/src/core/CL/cl_kernels/helpers.h
@@ -29,7 +29,9 @@
#endif // defined(ARM_COMPUTE_OPENCL_FP16_ENABLED)
#if defined(ARM_COMPUTE_DEBUG_ENABLED)
+#if defined(cl_arm_printf)
#pragma OPENCL EXTENSION cl_arm_printf : enable
+#endif // defined(cl_arm_printf)
#endif // defined(ARM_COMPUTE_DEBUG_ENABLED)
#define EXPAND(x) x