From 2083df500f48800a8368c93a7c04fbc9f865bee7 Mon Sep 17 00:00:00 2001 From: Dmitry Kolesnikov Date: Sat, 17 Aug 2024 16:23:14 +0300 Subject: [PATCH] disable SIMD --- internal/simd/euclidean_arm64.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/simd/euclidean_arm64.go b/internal/simd/euclidean_arm64.go index cad3888..bbb656d 100644 --- a/internal/simd/euclidean_arm64.go +++ b/internal/simd/euclidean_arm64.go @@ -15,7 +15,11 @@ import ( "golang.org/x/sys/cpu" ) -var ENABLED_EUCLIDEAN = cpu.ARM64.HasASIMD +// Note: https://github.com/kshard/vector/issues/6 +// +// Assembly function causes NaN exception on some input +// SIMD disable until fixed (not a high priority, see noasm) +var ENABLED_EUCLIDEAN = cpu.ARM64.HasASIMD && false // Squared Euclidean distance between two vectors. //