From 786c0c4e84c5d3ac32974e2ce33a200d3c18ee1b Mon Sep 17 00:00:00 2001 From: Madhumitha Sridhara Date: Wed, 19 Mar 2025 22:34:39 -0700 Subject: [PATCH] Link quantized ops lib in xnn_executor_runner Summary: Running exported models with quantized embedding ops and such requires these kernels to be linked at runtime. Differential Revision: D71527836 --- backends/xnnpack/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/xnnpack/CMakeLists.txt b/backends/xnnpack/CMakeLists.txt index 66f8343e1da..a1a110cc10a 100644 --- a/backends/xnnpack/CMakeLists.txt +++ b/backends/xnnpack/CMakeLists.txt @@ -146,6 +146,10 @@ if(EXECUTORCH_BUILD_KERNELS_CUSTOM) list(APPEND xnn_executor_runner_libs $) endif() +if(EXECUTORCH_BUILD_KERNELS_QUANTIZED) + list(APPEND xnn_executor_runner_libs quantized_ops_lib) +endif() + list(APPEND xnn_executor_runner_libs xnnpack_backend executorch) # ios can only build library but not binary