Skip to content

Commit 7c300e7

Browse files
authored
Rename kernels_custom to kernels_llm (#12389)
1 parent 4e956e6 commit 7c300e7

File tree

37 files changed

+74
-74
lines changed

37 files changed

+74
-74
lines changed

.ci/scripts/test_llama_torchao_lowbit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ cmake -DPYTHON_EXECUTABLE=python \
3535
-DEXECUTORCH_BUILD_XNNPACK=OFF \
3636
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
3737
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
38-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
38+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
3939
-Bcmake-out .
4040
cmake --build cmake-out -j16 --target install --config Release
4141

4242
# Install llama runner with torchao
4343
cmake -DPYTHON_EXECUTABLE=python \
4444
-DBUILD_TESTING=OFF \
4545
-DCMAKE_BUILD_TYPE=Release \
46-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
46+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
4747
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
4848
-DEXECUTORCH_BUILD_XNNPACK=OFF \
4949
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \

.ci/scripts/test_llava.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ EXECUTORCH_COMMON_CMAKE_ARGS=" \
3939
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
4040
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
4141
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
42-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
42+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
4343
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
4444
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
4545
-DEXECUTORCH_BUILD_XNNPACK=ON \
@@ -69,7 +69,7 @@ LLAVA_COMMON_CMAKE_ARGS=" \
6969
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
7070
-DCMAKE_INSTALL_PREFIX=${BUILD_DIR} \
7171
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
72-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
72+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
7373
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
7474
-DEXECUTORCH_BUILD_XNNPACK=ON"
7575

.ci/scripts/test_phi_3_mini.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cmake_install_executorch_libraries() {
3333
-DEXECUTORCH_BUILD_XNNPACK=ON \
3434
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
3535
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
36-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
36+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
3737
-B${BUILD_DIR} .
3838

3939
cmake --build ${BUILD_DIR} -j${NPROC} --target install --config ${BUILD_TYPE}
@@ -43,7 +43,7 @@ cmake_build_phi_3_mini() {
4343
cmake -DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE \
4444
-DCMAKE_INSTALL_PREFIX=${BUILD_DIR} \
4545
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
46-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
46+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
4747
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
4848
-DEXECUTORCH_BUILD_XNNPACK=ON \
4949
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \

.github/workflows/apple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
"backend_coreml"
153153
"backend_mps"
154154
"backend_xnnpack"
155-
"kernels_custom"
155+
"kernels_llm"
156156
"kernels_optimized"
157157
"kernels_quantized"
158158
"threadpool"

.github/workflows/trunk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ jobs:
645645
-DEXECUTORCH_BUILD_XNNPACK=ON \
646646
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
647647
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
648-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
648+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
649649
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
650650
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
651651
-Bcmake-out .

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
677677
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/training)
678678
endif()
679679

680-
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
680+
if(EXECUTORCH_BUILD_KERNELS_LLM)
681681
# TODO: move all custom kernels to ${CMAKE_CURRENT_SOURCE_DIR}/kernels/custom
682682
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/llm/custom_ops)
683683
endif()
@@ -704,7 +704,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
704704
list(APPEND _executor_runner_libs quantized_ops_lib)
705705
endif()
706706

707-
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
707+
if(EXECUTORCH_BUILD_KERNELS_LLM)
708708
list(APPEND _executor_runner_libs $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
709709
endif()
710710

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let products = deliverables([
6969
"c++",
7070
],
7171
],
72-
"kernels_custom": [:],
72+
"kernels_llm": [:],
7373
"kernels_optimized": [
7474
"frameworks": [
7575
"Accelerate",

backends/cadence/build_cadence_fusionG3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if $STEPWISE_BUILD; then
4747
-DEXECUTORCH_ENABLE_PROGRAM_VERIFICATION=ON \
4848
-DEXECUTORCH_USE_DL=OFF \
4949
-DEXECUTORCH_BUILD_PORTABLE_OPS=ON \
50-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=OFF \
50+
-DEXECUTORCH_BUILD_KERNELS_LLM=OFF \
5151
-DPYTHON_EXECUTABLE=python3 \
5252
-DEXECUTORCH_FUSION_G3_OPT=ON \
5353
-DHAVE_FNMATCH_H=OFF \
@@ -72,7 +72,7 @@ else
7272
-DEXECUTORCH_ENABLE_PROGRAM_VERIFICATION=ON \
7373
-DEXECUTORCH_USE_DL=OFF \
7474
-DEXECUTORCH_BUILD_PORTABLE_OPS=ON \
75-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=OFF \
75+
-DEXECUTORCH_BUILD_KERNELS_LLM=OFF \
7676
-DPYTHON_EXECUTABLE=python3 \
7777
-DEXECUTORCH_FUSION_G3_OPT=ON \
7878
-DHAVE_FNMATCH_H=OFF \

0 commit comments

Comments
 (0)