File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,18 @@ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER ON)
1313set_overridable_option(EXECUTORCH_BUILD_EXTENSION_MODULE ON )
1414set_overridable_option(EXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP ON )
1515set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON )
16- set_overridable_option(EXECUTORCH_BUILD_KERNELS_LLM ON )
1716set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON )
18- set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON )
1917set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON )
2018
19+ # Turn on the quantized and LLM kernels unless on windows cuda build which
20+ # currently doesn't support this due to using msvc.
21+ if (NOT (EXECUTORCH_BUILD_CUDA AND (CMAKE_SYSTEM_NAME STREQUAL "Windows"
22+ OR CMAKE_SYSTEM_NAME STREQUAL "WIN32" ))
23+ )
24+ set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON )
25+ set_overridable_option(EXECUTORCH_BUILD_KERNELS_LLM ON )
26+ endif ()
27+
2128if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
2229 set_overridable_option(EXECUTORCH_BUILD_COREML ON )
2330 set_overridable_option(EXECUTORCH_BUILD_MPS ON )
@@ -29,7 +36,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
2936elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL
3037 "WIN32"
3138)
32- # Windows or other OS-specific code here
39+
3340elseif (CMAKE_SYSTEM_NAME STREQUAL "Android" )
3441 # Android-specific code here
3542else ()
You can’t perform that action at this time.
0 commit comments