From a9e153398e4a998ee01623eb78c4604bbd8d34e7 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 22 Dec 2017 16:37:30 +0000 Subject: COMPMID-766 Allow graph examples to run without OpenCL being present on the platform Change-Id: I4142e0720ecb58549a08d4e86ad21abb882f5f37 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114552 Reviewed-by: Anthony Barbier Tested-by: Anthony Barbier --- arm_compute/core/CL/OpenCL.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arm_compute/core/CL/OpenCL.h') diff --git a/arm_compute/core/CL/OpenCL.h b/arm_compute/core/CL/OpenCL.h index 8a2d30bb83..e389b867a9 100644 --- a/arm_compute/core/CL/OpenCL.h +++ b/arm_compute/core/CL/OpenCL.h @@ -57,6 +57,9 @@ public: #define DECLARE_FUNCTION_PTR(func_name) \ std::function func_name##_ptr = nullptr + DECLARE_FUNCTION_PTR(clCreateContextFromType); + DECLARE_FUNCTION_PTR(clCreateCommandQueue); + DECLARE_FUNCTION_PTR(clGetContextInfo); DECLARE_FUNCTION_PTR(clBuildProgram); DECLARE_FUNCTION_PTR(clEnqueueNDRangeKernel); DECLARE_FUNCTION_PTR(clSetKernelArg); -- cgit v1.2.1