From eb8a399ba655b85c6854676832eb11b0af4108fe Mon Sep 17 00:00:00 2001 From: Vidhya Sudhan Loganathan Date: Tue, 10 Apr 2018 12:23:22 +0100 Subject: 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 Reviewed-by: Anthony Barbier --- arm_compute/core/CL/CLHelpers.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/core/CL/CLHelpers.h') 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 -- cgit v1.2.1