We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd98b5e commit ab0558bCopy full SHA for ab0558b
kernels/portable/CMakeLists.txt
@@ -66,9 +66,7 @@ gen_operators_lib(
66
# Portable kernels support optional parallelization (and, in the
67
# future, perhaps other performance features). If support is present,
68
# produce an optimized version.
69
-set(BUILD_OPTIMIZED_PORTABLE_KERNELS EXECUTORCH_BUILD_PTHREADPOOL)
70
-
71
-if(BUILD_OPTIMIZED_PORTABLE_KERNELS)
+if(EXECUTORCH_BUILD_PTHREADPOOL AND EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
72
add_library(optimized_portable_kernels ${_portable_kernels__srcs})
73
target_link_libraries(optimized_portable_kernels PRIVATE executorch)
74
target_link_libraries(optimized_portable_kernels PUBLIC extension_threadpool)
0 commit comments