diff options
author | ohadagoogle <ohada@google.com> | 2022-06-20 16:16:13 +0000 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2022-06-23 10:56:34 +0000 |
commit | 3efdfb3979c429f3f0c8e2e7a47672de8deceac6 (patch) | |
tree | 733650d9f809ac489a1d0d12cf603ac8b58600cd /arm_compute/core | |
parent | 14ce09453682618a53544152c3fe8efd5fa7b2c9 (diff) | |
download | ComputeLibrary-3efdfb3979c429f3f0c8e2e7a47672de8deceac6.tar.gz |
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 <ohada@google.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7836
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core')
-rw-r--r-- | arm_compute/core/CL/OpenCL.h | 5 |
1 files changed, 3 insertions, 2 deletions
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. |