File: use-system-libarm-compute-library

package info (click to toggle)
armnn 23.08-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 53,580 kB
  • sloc: cpp: 337,440; python: 4,755; sh: 1,708; makefile: 42; asm: 15; xml: 6
file content (38 lines) | stat: -rw-r--r-- 2,017 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Francis Murtagh <francis.murtagh@arm.com>
Date: Tue, 1 Aug 2023 21:39:26 +0200
Subject: Use system libarm-compute library

X-Dgit-Generated: 20.08-1 a87ca2399a3379e215d67a6f809a201d88750a16

Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
---
 cmake/GlobalConfig.cmake | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
index 2d97899..e413e4f 100644
--- a/cmake/GlobalConfig.cmake
+++ b/cmake/GlobalConfig.cmake
@@ -325,10 +325,18 @@ if(ARMCOMPUTENEON OR ARMCOMPUTECL)
 
         # In case it wasn't there, try a default search (will work in cases where
         # the library has been installed into a standard location)
-        find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute-static)
-        find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute-static)
-        find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core-static)
-        find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core-static)
+        #find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute-static)
+        #find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute-static)
+        #find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core-static)
+        #find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core-static)
+
+        # In case it wasn't there, try the dynamic libraries
+        # This case will get used in a linux setup where the Compute Library
+        # has been installed in a standard system library path as a dynamic library
+        find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute)
+        find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute)
+        find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core)
+        find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core)
 
         # In case it wasn't there, try the dynamic libraries
         # This case will get used in a linux setup where the Compute Library