File: fix-logic-so-opencl-is-not-linked-if-ope

package info (click to toggle)
armnn 20.08-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,636 kB
  • sloc: cpp: 211,563; python: 2,756; sh: 285; makefile: 38; asm: 6
file content (20 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix logic so OpenCL is not linked if OPENCL_LIBRARIES
 Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Author: Francis Murtagh <francis.murtagh@arm.com>
X-Dgit-Generated: 20.08-1 e76ce195d3af29fd378ceb738a1787d7ad1c3ae1

---

--- armnn-20.08.orig/CMakeLists.txt
+++ armnn-20.08/CMakeLists.txt
@@ -611,6 +611,10 @@ if(ARMCOMPUTENEON OR ARMCOMPUTECL)
     target_link_libraries(armnn ${ARMCOMPUTE_LIBRARIES})
 endif()
 
+if(ARMCOMPUTECL AND OPENCL_LIBRARIES)
+    target_link_libraries(armnn ${OPENCL_LIBRARIES})
+endif()
+
 if(PROFILING_BACKEND_STREAMLINE AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android)))
     target_link_libraries(armnn pthread)
 endif()