@@ -82,17 +82,23 @@ if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR
82
82
check_cxx_source_compiles ("#include <arm_neon.h>\n int main() { int8x16_t _a, _b; int32x4_t _s = vdotq_s32(_s, _a, _b); return 0; }" GGML_COMPILER_SUPPORT_DOTPROD )
83
83
if (GGML_COMPILER_SUPPORT_DOTPROD )
84
84
add_compile_definitions (__ARM_FEATURE_DOTPROD )
85
+
86
+ message (STATUS "ARM feature DOTPROD enabled" )
85
87
endif ()
86
88
87
- check_cxx_source_compiles ("#include <arm_neon.h>\n int main() { int8x16_t _a, _b; int32x4_t _s = vmlaq_f32 (_s, _a, _b); return 0; }" GGML_COMPILER_SUPPORT_MATMUL_INT8 )
89
+ check_cxx_source_compiles ("#include <arm_neon.h>\n int main() { int8x16_t _a, _b; int32x4_t _s = vmmlaq_f32 (_s, _a, _b); return 0; }" GGML_COMPILER_SUPPORT_MATMUL_INT8 )
88
90
89
91
if (GGML_COMPILER_SUPPORT_MATMUL_INT8 )
90
92
add_compile_definitions (__ARM_FEATURE_MATMUL_INT8 )
93
+
94
+ message (STATUS "ARM feature MATMUL_INT8 enabled" )
91
95
endif ()
92
96
93
97
check_cxx_source_compiles ("#include <arm_neon.h>\n int main() { float16_t _a; float16x8_t _s = vdupq_n_f16(_a); return 0; }" GGML_COMPILER_SUPPORT_FP16_VECTOR_ARITHMETIC )
94
98
if (GGML_COMPILER_SUPPORT_FP16_VECTOR_ARITHMETIC )
95
99
add_compile_definitions (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC )
100
+
101
+ message (STATUS "ARM feature FP16_VECTOR_ARITHMETIC enabled" )
96
102
endif ()
97
103
98
104
set (CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_PREV} )
@@ -113,17 +119,23 @@ if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR
113
119
if (GGML_COMPILER_SUPPORT_DOTPROD )
114
120
set (MARCH_FLAGS "${MARCH_FLAGS} +dotprod" )
115
121
add_compile_definitions (__ARM_FEATURE_DOTPROD )
122
+
123
+ message (STATUS "ARM feature DOTPROD enabled" )
116
124
endif ()
117
125
118
126
set (TEST_I8MM_FLAGS "-march=armv8.2a+i8mm" )
119
127
120
128
set (CMAKE_REQUIRED_FLAGS_SAVE ${CMAKE_REQUIRED_FLAGS} )
121
- set (CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${TEST_I8MM_FLAGS} " )
129
+ set (CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${TEST_I8MM_FLAGS} " )
130
+
122
131
check_cxx_source_compiles ("#include <arm_neon.h>\n int main() { int8x16_t _a, _b; int32x4_t _s = vmmlaq_s32(_s, _a, _b); return 0; }" GGML_COMPILER_SUPPORT_MATMUL_INT8 )
123
132
if (GGML_COMPILER_SUPPORT_MATMUL_INT8 )
124
133
set (MARCH_FLAGS "${MARCH_FLAGS} +i8mm" )
125
134
add_compile_definitions (__ARM_FEATURE_MATMUL_INT8 )
135
+
136
+ message (STATUS "ARM feature MATMUL_INT8 enabled" )
126
137
endif ()
138
+
127
139
set (CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_SAVE} )
128
140
129
141
list (APPEND ARCH_FLAGS "${MARCH_FLAGS} " )
0 commit comments