Skip to content

Commit

Permalink
update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhu-wang committed Jan 23, 2025
1 parent 1a9e7f9 commit eb9af9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/intel_cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ if(ENABLE_CPU_DEBUG_CAPS)
add_definitions(-DCPU_DEBUG_CAPS)
endif()

if (ENABLE_SNIPPETS_LIBXSMM_TPP OR AARCH64 OR ARM)
if(AARCH64 OR ARM)
set(ENABLE_SNIPPETS_LIBXSMM_TPP ON)
endif()

if (ENABLE_SNIPPETS_LIBXSMM_TPP)
# Note: LIBXSMM_DEFAULT_CONFIG needed so libxsmm_config can be included without issues
add_definitions(-DSNIPPETS_LIBXSMM_TPP -DLIBXSMM_DEFAULT_CONFIG)
endif()
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/intel_cpu/thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ function(ov_add_onednn)
endif()
endfunction()

if(AARCH64 OR ARM)
set(ENABLE_SNIPPETS_LIBXSMM_TPP ON)
endif()

if (ENABLE_SNIPPETS_LIBXSMM_TPP)
add_subdirectory(libxsmm)
ov_install_static_lib(libxsmm ${OV_CPACK_COMP_CORE})
Expand Down

0 comments on commit eb9af9c

Please sign in to comment.