aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CL/CLHelpers.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 /arm_compute/core/CL/CLHelpers.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 'arm_compute/core/CL/CLHelpers.h')
-rw-r--r--arm_compute/core/CL/CLHelpers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arm_compute/core/CL/CLHelpers.h b/arm_compute/core/CL/CLHelpers.h
index d239a6159b..c7182656df 100644
--- a/arm_compute/core/CL/CLHelpers.h
+++ b/arm_compute/core/CL/CLHelpers.h
@@ -134,6 +134,16 @@ GPUTarget get_arch_from_target(GPUTarget target);
* @return the highest OpenCL version supported
*/
CLVersion get_cl_version(const cl::Device &device);
+
+/** Helper function to check whether a given extension is supported
+ *
+ * @param[in] device A CL device
+ * @param[in] extension_name Name of the extension to be checked
+ *
+ * @return True if the extension is supported
+ */
+bool device_supports_extension(const cl::Device &device, const char *extension_name);
+
/** Helper function to check whether the cl_khr_fp16 extension is supported
*
* @param[in] device A CL device