Skip to content

Commit

Permalink
Change the compiler option for ARM.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed May 4, 2015
1 parent 0ce95b5 commit 13278d3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ if(WIN32)
set(OS_WINDOWS 1)
endif()

#load architecture config file (OPTIONAL)
include("${PROJECT_SOURCE_DIR}/config/${OpenVML_ARCH}.cmake" OPTIONAL)

configure_file (
"${PROJECT_SOURCE_DIR}/include/openvml_config.h.in"
"${PROJECT_BINARY_DIR}/include/openvml_config.h"
Expand Down
5 changes: 5 additions & 0 deletions config/arm.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Use hard float-abi and ARMV7-A
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=hard")

#ARMV7-A
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a")
4 changes: 4 additions & 0 deletions kernel/arm/Kernel_cortexa15.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
include(${OpenVML_ARCH}/Kernel_generic.txt)

set(OpenVML_KERNEL_COMPILE_FLAGS -mtune=cortex-a15)

#set(exp_S_KERNEL_SOURCE ${OpenVML_ARCH}/sexp_kernel_neon.c)
3 changes: 3 additions & 0 deletions kernel/arm/Kernel_cortexa9.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include(${OpenVML_ARCH}/Kernel_generic.txt)

set(OpenVML_KERNEL_COMPILE_FLAGS -mtune=cortex-a9)

0 comments on commit 13278d3

Please sign in to comment.