From a382b7bfc52c213df1eecf979da719b4872f5394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 10 Nov 2025 06:59:16 +0100 Subject: [PATCH] std.simd: suggest 1024-bit vectors for kvx --- lib/std/simd.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/simd.zig b/lib/std/simd.zig index e0b2195726..ea29098f35 100644 --- a/lib/std/simd.zig +++ b/lib/std/simd.zig @@ -68,6 +68,8 @@ pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu) if (cpu.has(.s390x, .vector)) break :blk 128; } else if (cpu.arch.isSPARC()) { if (cpu.hasAny(.sparc, &.{ .vis, .vis2, .vis3 })) break :blk 64; + } else if (cpu.arch == .kvx) { + break :blk 1024; } else if (cpu.arch == .ve) { if (cpu.has(.ve, .vpu)) break :blk 2048; } else if (cpu.arch.isWasm()) {