From 3efdfb3979c429f3f0c8e2e7a47672de8deceac6 Mon Sep 17 00:00:00 2001 From: ohadagoogle Date: Mon, 20 Jun 2022 16:16:13 +0000 Subject: Enable loading OpenCL symbols in Android App native code, NDK environment. * Based on ArmNN work: IVGCVSW-6960 Device not found running MLTS with Support Library Change-Id: I8cb8acc30c8a4afa60bc1cf80eb5b6b2c43dfdc1 Signed-off-by: Ohad Almagor Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7836 Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- arm_compute/core/CL/OpenCL.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 93f7c318dd..058214bd07 100644 --- a/arm_compute/core/CL/OpenCL.h +++ b/arm_compute/core/CL/OpenCL.h @@ -75,11 +75,12 @@ public: static CLSymbols &get(); /** Load symbols from the given OpenCL library path. * - * @param[in] library Path to the OpenCL library. + * @param[in] library Path to the OpenCL library. + * @param[in] use_loader Use symbol loader function loadOpenCLPointer. * * @return True if loading the library is successful. */ - bool load(const std::string &library); + bool load(const std::string &library, bool use_loader = false); /** Load symbols from any of the default OpenCL library names. * * @return True if loading any library is successful. -- cgit v1.2.1