Skip to content

Commit

Permalink
[infra] Fix compile CPU type option (Samsung#12287)
Browse files Browse the repository at this point in the history
This commit fixes armv7 CPU type option to set `march` and `mtune` and remove `mcpu`.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Dec 14, 2023
1 parent f64b740 commit 1162023
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion infra/nnfw/cmake/buildtool/config/config_armv7hl-tizen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ include("cmake/buildtool/config/config_linux.cmake")

# addition for arm-linux
set(FLAGS_COMMON ${FLAGS_COMMON}
"-mtune=cortex-a8"
"-march=armv7-a"
"-mtune=cortex-a15.cortex-a7"
"-mfloat-abi=hard"
"-mfpu=neon-vfpv4"
"-funsafe-math-optimizations"
Expand Down
3 changes: 2 additions & 1 deletion infra/nnfw/cmake/buildtool/config/config_armv7l-linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ include("${CMAKE_CURRENT_LIST_DIR}/config_linux.cmake")

# addition for arm-linux
set(FLAGS_COMMON ${FLAGS_COMMON}
"-mcpu=cortex-a7"
"-march=armv7-a"
"-mtune=cortex-a15.cortex-a7"
"-mfloat-abi=hard"
"-mfpu=neon-vfpv4"
"-ftree-vectorize"
Expand Down
3 changes: 2 additions & 1 deletion infra/nnfw/cmake/buildtool/config/config_armv7l-tizen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ include("cmake/buildtool/config/config_linux.cmake")

# addition for arm-linux
set(FLAGS_COMMON ${FLAGS_COMMON}
"-mtune=cortex-a8"
"-march=armv7-a"
"-mtune=cortex-a15.cortex-a7"
"-mfloat-abi=softfp"
"-mfpu=neon-vfpv4"
"-funsafe-math-optimizations"
Expand Down

0 comments on commit 1162023

Please sign in to comment.