File: allow-use-of-system-opencl-includes

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-- 784 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: Allow use of system OpenCl includes
 Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Author: Francis Murtagh <francis.murtagh@arm.com>
X-Dgit-Generated: 20.08-1 11545e3dfbda4df4eef158108487ec512ce61411

---

--- armnn-20.08.orig/cmake/GlobalConfig.cmake
+++ armnn-20.08/cmake/GlobalConfig.cmake
@@ -324,9 +324,7 @@ endif()
 # ARM Compute OpenCL backend
 if(ARMCOMPUTECL)
     # Always use Arm compute library OpenCL headers
-    find_path(OPENCL_INCLUDE CL/cl2.hpp
-              PATHS ${ARMCOMPUTE_ROOT}/include
-              NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
+    find_path(OPENCL_INCLUDE CL/cl2.hpp)
 
     # Link against libOpenCL in opencl-1.2-stubs, but don't search there at runtime
     link_libraries(-L${ARMCOMPUTE_BUILD_DIR}/opencl-1.2-stubs)