Skip to content

Commit

Permalink
[infra] Fix xnnpack tizen build (Samsung#13143)
Browse files Browse the repository at this point in the history
This commit xnnpack disables assembly on tizen armv7l.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Jun 11, 2024
1 parent 01a21f4 commit e2681d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions infra/nnfw/cmake/packages/XnnpackConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ function(_Xnnpack_Build)
set(XNNPACK_BUILD_BENCHMARKS OFF CACHE BOOL "Build XNNPACK benchmarks")
set(XNNPACK_USE_SYSTEM_LIBS ON CACHE BOOL "Use system-provided dependency libraries")

# microkernel build is not supported under gcc 9.x and clang
# microkernel build is not supported under gcc 9.x, clang, and tizen armv7l
# TODO Enable this
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0 OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0 OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
(TARGET_OS STREQUAL "tizen" AND TARGET_ARCH STREQUAL "armv7l"))
set(XNNPACK_ENABLE_ASSEMBLY OFF CACHE BOOL "Build XNNPACK with assembly micro-kernels")
set(XNNPACK_ENABLE_ARM_I8MM OFF CACHE BOOL "Build XNNPACK with ARM I8MM (8-bit integer matrix multiply accumulate) micro-kernels")
# Set definition: used on patched code
Expand Down

0 comments on commit e2681d9

Please sign in to comment.