File: cmake-disable-simd-on-arm.patch

package info (click to toggle)
lua-torch-torch7 0~20170926-g89ede3b-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,336 kB
  • sloc: ansic: 19,550; makefile: 79; sh: 20
file content (20 lines) | stat: -rw-r--r-- 855 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Purpose: disable OMAP*, and NEON instruction sets for sake of compatibility
Forward: not yet, keep it here.
diff --git a/lib/TH/cmake/FindARM.cmake b/lib/TH/cmake/FindARM.cmake
index 59c78d8..697a399 100644
--- a/lib/TH/cmake/FindARM.cmake
+++ b/lib/TH/cmake/FindARM.cmake
@@ -64,6 +64,13 @@ ELSE(CMAKE_SYSTEM_NAME MATCHES "Linux")
    set(NEON_FOUND   false CACHE BOOL "NEON not available on host")
 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
+IF(DEBIAN_ARM)
+   # build for the best compatibility even if the builder supports SIMD
+   set(CORTEXA8_FOUND   false CACHE BOOL "OMAP3 disabled")
+   set(CORTEXA9_FOUND   false CACHE BOOL "OMAP4 disabled")
+   set(NEON_FOUND   false CACHE BOOL "NEON disabled")
+ENDIF(DEBIAN_ARM)
+
 if(NOT NEON_FOUND)
       MESSAGE(STATUS "Could not find hardware support for NEON on this machine.")
 endif(NOT NEON_FOUND)