From 9094d11c5d74db904dff9e9b1c63da5d73707eeb Mon Sep 17 00:00:00 2001 From: Yeju Zhou Date: Sat, 26 Jul 2025 22:09:57 +0800 Subject: [PATCH] [Bugfix][Apple Silicon] fix missing symbols when build from source on Mac with Apple Silicon (#21380) Signed-off-by: Yeju Zhou --- csrc/cpu/torch_bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csrc/cpu/torch_bindings.cpp b/csrc/cpu/torch_bindings.cpp index f1738aee980b6..b20a054648428 100644 --- a/csrc/cpu/torch_bindings.cpp +++ b/csrc/cpu/torch_bindings.cpp @@ -151,7 +151,7 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { ops.impl("rotary_embedding", torch::kCPU, &rotary_embedding); // Quantization -#if defined(__AVX512F__) || defined(__aarch64__) +#if defined(__AVX512F__) || (defined(__aarch64__) && !defined(__APPLE__)) at::Tag stride_tag = at::Tag::needs_fixed_stride_order; // Compute int8 quantized tensor for given scaling factor.