Add flow to exclude libOpenCL when building AndroidnNN
authoralered01 <Alex.Redshaw@arm.com>
Fri, 3 Apr 2020 14:37:13 +0000 (15:37 +0100)
committeralered01 <Alex.Redshaw@arm.com>
Fri, 3 Apr 2020 15:08:46 +0000 (16:08 +0100)
When building AndroidNN for a commercial silicon device, there's no need to include libOpenCL as we should be able to use the one already on the device

Change-Id: I2ad2e2e15b9619358199b106adf1eae642d0d3f6
Signed-off-by: alered01 <Alex.Redshaw@arm.com>
Android.mk

index 6723deb..2cd6e50 100644 (file)
@@ -421,7 +421,7 @@ LOCAL_SHARED_LIBRARIES := \
         android.hidl.allocator@1.0 \
         android.hidl.memory@1.0
 
-ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1)
+ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1)
 LOCAL_SHARED_LIBRARIES += \
         libOpenCL
 endif