Skip to content

Commit

Permalink
ggml : fix redefinition of vaddvq_f32 for 32-bit ARM (#6906)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored Apr 25, 2024
1 parent 4ab99d8 commit 5154372
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,18 +858,6 @@ ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type) {
// simd mappings
//

#if defined(__ARM_NEON)
#if !defined(__aarch64__)

// 64-bit compatibility

inline static float vaddvq_f32(float32x4_t v) {
return vgetq_lane_f32(v, 0) + vgetq_lane_f32(v, 1) + vgetq_lane_f32(v, 2) + vgetq_lane_f32(v, 3);
}

#endif
#endif

// we define a common set of C macros which map to specific intrinsics based on the current architecture
// we then implement the fundamental computation operations below using only these macros
// adding support for new architectures requires to define the corresponding SIMD macros
Expand Down

0 comments on commit 5154372

Please sign in to comment.