Skip to content

Commit 7877ec0

Browse files
tomeuvclaude
andcommitted
cmake: build and install libexecutorch_quantized_ops
Create libexecutorch_quantized_ops.so under EXECUTORCH_BUILD_SHARED. Allows applications to run (de)quantization on the CPU when their backend of choice doesn't support natively. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2f38512 commit 7877ec0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

kernels/quantized/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,10 @@ install(
157157
PUBLIC_HEADER
158158
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/executorch/kernels/quantized/
159159
)
160+
161+
if(EXECUTORCH_BUILD_SHARED)
162+
executorch_add_shared_library(
163+
executorch_quantized_ops quantized_ops_lib quantized_kernels
164+
executorch_shared
165+
)
166+
endif()

0 commit comments

Comments
 (0)