Skip to content

Commit

Permalink
Linux Build: Split kernel lib into smaller libs (#1066)
Browse files Browse the repository at this point in the history
Split kernel lib into smaller libs.
  • Loading branch information
xytintel authored Nov 11, 2024
2 parents 92bdb91 + f713077 commit e250a26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/BuildOnLinux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ else()
foreach(sycl_src ${ATen_XPU_SYCL_SRCS})
string(REGEX MATCH "Binary" IS_BINARY ${sycl_src})
string(REGEX MATCH "Unary" IS_UNARY ${sycl_src})
string(REGEX MATCH "Pow" IS_POW ${sycl_src})
string(REGEX MATCH "Copy" IS_COPY ${sycl_src})
string(REGEX MATCH "Reduce" IS_REDUCE ${sycl_src})
string(REGEX MATCH "Activation" IS_ACTIVATION ${sycl_src})
string(REGEX MATCH "Foreach" IS_FOREACH ${sycl_src})

if(NOT IS_FOREACH STREQUAL "")
Expand All @@ -43,6 +46,10 @@ else()
list(APPEND ATen_XPU_SYCL_REDUCE_SRCS ${sycl_src})
elseif(NOT IS_UNARY STREQUAL "" OR NOT IS_BINARY STREQUAL "")
list(APPEND ATen_XPU_SYCL_UNARY_BINARY_SRCS ${sycl_src})
elseif(NOT IS_COPY STREQUAL "" OR NOT IS_POW STREQUAL "")
list(APPEND ATen_XPU_SYCL_UNARY_BINARY_SRCS ${sycl_src})
elseif(NOT IS_ACTIVATION STREQUAL "")
list(APPEND ATen_XPU_SYCL_UNARY_BINARY_SRCS ${sycl_src})
else()
list(APPEND ATen_XPU_SYCL_OTHERS_SRCS ${sycl_src})
endif()
Expand Down

0 comments on commit e250a26

Please sign in to comment.