File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,10 @@ if (GGML_CPU_ALL_VARIANTS)
330
330
ggml_add_cpu_backend_variant (android_armv8.2_1 DOTPROD )
331
331
ggml_add_cpu_backend_variant (android_armv8.2_2 DOTPROD FP16_VECTOR_ARITHMETIC )
332
332
ggml_add_cpu_backend_variant (android_armv8.6_1 DOTPROD FP16_VECTOR_ARITHMETIC MATMUL_INT8 )
333
+ elseif (APPLE )
334
+ ggml_add_cpu_backend_variant (apple_m1 DOTPROD )
335
+ ggml_add_cpu_backend_variant (apple_m2_m3 DOTPROD MATMUL_INT8 )
336
+ ggml_add_cpu_backend_variant (apple_m4 DOTPROD MATMUL_INT8 NOSVE SME )
333
337
else ()
334
338
message (FATAL_ERROR "Unsupported ARM target OS: ${CMAKE_SYSTEM_NAME} " )
335
339
endif ()
Original file line number Diff line number Diff line change @@ -190,6 +190,9 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
190
190
set (ARCH_TAGS "${ARCH_TAGS} +sve2" )
191
191
list (APPEND ARCH_DEFINITIONS GGML_USE_SVE2 )
192
192
endif ()
193
+ if (GGML_INTERNAL_NOSVE )
194
+ set (ARCH_TAGS "${ARCH_TAGS} +nosve" )
195
+ endif ()
193
196
if (GGML_INTERNAL_SME )
194
197
set (ARM_MCPU "armv9.2-a" )
195
198
set (ARCH_TAGS "${ARCH_TAGS} +sme" )
You can’t perform that action at this time.
0 commit comments