Commit a382b7bfc5

Alex Rønne Petersen <alex@alexrp.com>
2025-11-10 06:59:16
std.simd: suggest 1024-bit vectors for kvx
1 parent 39b5c8e
Changed files (1)
lib
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()) {