add guard for sizeless vector types

This commit is contained in:
Aman Gupta 2026-02-10 18:53:30 +05:30
parent c8b9c839a1
commit a1e1420b46
1 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,9 @@
#include "vec.h" #include "vec.h"
#include "common.h" #include "common.h"
#ifdef GGML_SIMD
// TODO: add support for sizeless vector types
#if defined(GGML_SIMD) && !defined(__ARM_FEATURE_SVE) && !defined(__riscv_v_intrinsic)
// TODO: untested on avx512 and arm // TODO: untested on avx512 and arm
// These are in units of GGML_F32_EPR // These are in units of GGML_F32_EPR
@ -106,7 +108,7 @@ static void simd_gemm(
} }
} }
#else // !GGML_SIMD #else // scalar path
static void simd_gemm( static void simd_gemm(
float * GGML_RESTRICT C, float * GGML_RESTRICT C,