File tree Expand file tree Collapse file tree 3 files changed +2
-47
lines changed Expand file tree Collapse file tree 3 files changed +2
-47
lines changed Original file line number Diff line number Diff line change 20
20
# It should also be cmake-lint clean.
21
21
#
22
22
23
- # Platform-specific definitions.
24
- if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm64" )
25
- set (arm64 ON )
26
- else ()
27
- set (arm64 OFF )
28
- endif ()
29
-
30
- if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" )
31
- set (x86 ON )
32
- else ()
33
- set (x86 OFF )
34
- endif ()
35
-
36
23
# Public function to print summary for all configurations. For new variables,
37
24
# it's recommended to add them here.
38
25
function (executorch_print_configuration_summary )
@@ -45,8 +32,6 @@ function(executorch_print_configuration_summary)
45
32
message (STATUS " BUCK2 : ${BUCK2} " )
46
33
message (STATUS " PYTHON_EXECUTABLE : ${PYTHON_EXECUTABLE} " )
47
34
message (STATUS " FLATC_EXECUTABLE : ${FLATC_EXECUTABLE} " )
48
- message (STATUS " X86 : ${x86} " )
49
- message (STATUS " ARM64 : ${arm64} " )
50
35
message (
51
36
STATUS " EXECUTORCH_ENABLE_LOGGING : ${EXECUTORCH_ENABLE_LOGGING} " )
52
37
message (
@@ -135,4 +120,4 @@ function(extract_sources sources_file)
135
120
message (FATAL_ERROR "executorch: source list generation failed" )
136
121
endif ()
137
122
endif ()
138
- endfunction ()
123
+ endfunction ()
Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ excludes = [
56
56
# Exclude the codegen templates, which are picked up because the buck target
57
57
# is the generated_lib and not the unwrapped set of kernels.
58
58
" ^codegen/templates" ,
59
- # Exclude blas, since it's built as a separate target.
60
- " ^kernels/optimized/blas" ,
61
59
]
62
60
deps = [
63
61
" executorch" ,
@@ -87,19 +85,6 @@ filters = [
87
85
" .fbs$" ,
88
86
]
89
87
90
- [targets .optimized_cpublas ]
91
- buck_targets = [
92
- " //kernels/optimized:libblas" ,
93
- ]
94
- filters = [
95
- " .cpp$" ,
96
- ]
97
- excludes = [
98
- ]
99
- deps = [
100
- " executorch" ,
101
- ]
102
-
103
88
# ---------------------------------- core end ----------------------------------
104
89
# ---------------------------------- extension start ----------------------------------
105
90
Original file line number Diff line number Diff line change @@ -30,24 +30,9 @@ endif()
30
30
31
31
set (_common_compile_options -Wno-deprecated-declarations )
32
32
33
- # Set platform-specific definitions.
34
- if (arm64 )
35
- list (APPEND _common_compile_options -DET_BUILD_WITH_BLAS )
36
- elseif (x86 )
37
- # TODO(T183193812) Enable once sleef is built in OSS.
38
- # list(APPEND _common_compile_options -DCPU_CAPABILITY_AVX2)
39
- endif ()
40
-
41
33
include (${EXECUTORCH_ROOT} /build/Utils.cmake )
42
34
include (${EXECUTORCH_ROOT} /build/Codegen.cmake )
43
35
44
- # Build cpublas.
45
- list (TRANSFORM _optimized_cpublas__srcs PREPEND "${EXECUTORCH_ROOT} /" )
46
- add_library (cpublas ${_optimized_cpublas__srcs} )
47
- target_link_libraries (cpublas PRIVATE executorch )
48
- target_compile_options (cpublas PUBLIC ${_common_compile_options} )
49
-
50
-
51
36
# Generate C++ bindings to register kernels into both PyTorch (for AOT) and
52
37
# Executorch (for runtime). Here select all ops in optimized.yaml
53
38
set (_yaml "${CMAKE_CURRENT_LIST_DIR} /optimized-oss.yaml" )
@@ -59,7 +44,7 @@ message("Generated files ${gen_command_sources}")
59
44
60
45
list (TRANSFORM _optimized_kernels__srcs PREPEND "${EXECUTORCH_ROOT} /" )
61
46
add_library (optimized_kernels ${_optimized_kernels__srcs} )
62
- target_link_libraries (optimized_kernels PRIVATE executorch cpublas )
47
+ target_link_libraries (optimized_kernels PRIVATE executorch )
63
48
target_compile_options (optimized_kernels PUBLIC ${_common_compile_options} )
64
49
# Build a library for _optimized_kernels_srcs
65
50
#
You can’t perform that action at this time.
0 commit comments