Skip to content

Commit 13278d3

Browse files
committed
Change the compiler option for ARM.
1 parent 0ce95b5 commit 13278d3

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ if(WIN32)
6666
set(OS_WINDOWS 1)
6767
endif()
6868

69+
#load architecture config file (OPTIONAL)
70+
include("${PROJECT_SOURCE_DIR}/config/${OpenVML_ARCH}.cmake" OPTIONAL)
71+
6972
configure_file (
7073
"${PROJECT_SOURCE_DIR}/include/openvml_config.h.in"
7174
"${PROJECT_BINARY_DIR}/include/openvml_config.h"

config/arm.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#Use hard float-abi and ARMV7-A
2+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=hard")
3+
4+
#ARMV7-A
5+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a")

kernel/arm/Kernel_cortexa15.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
include(${OpenVML_ARCH}/Kernel_generic.txt)
2+
3+
set(OpenVML_KERNEL_COMPILE_FLAGS -mtune=cortex-a15)
4+
5+
#set(exp_S_KERNEL_SOURCE ${OpenVML_ARCH}/sexp_kernel_neon.c)

kernel/arm/Kernel_cortexa9.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include(${OpenVML_ARCH}/Kernel_generic.txt)
2+
3+
set(OpenVML_KERNEL_COMPILE_FLAGS -mtune=cortex-a9)
4+

0 commit comments

Comments
 (0)