Skip to content

Commit

Permalink
try to fix compile on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SylarTiaNII committed Jan 16, 2024
1 parent 49a42be commit db73478
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions paddle/phi/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,17 @@ set(cc_search_pattern
"strings/cpu/*.cc"
"fusion/*.cc"
"stride/*.cc"
"fusion/cpu/*.cc"
"custom/*.cc")
"fusion/cpu/*.cc")

if(WITH_MKLDNN)
set(cc_search_pattern ${cc_search_pattern} "legacy/onednn/*.cc" "onednn/*.cc"
"fusion/onednn/*.cc")
endif()

if(WITH_CUSTOM_DEVICE)
set(cc_search_pattern ${cc_search_pattern} "custom/*.cc")
endif()

file(
GLOB kernel_cc
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
Expand Down

0 comments on commit db73478

Please sign in to comment.