mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.simd: suggest 1024-bit vectors for kvx
This commit is contained in:
parent
39b5c8ee8a
commit
a382b7bfc5
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu)
|
||||||
if (cpu.has(.s390x, .vector)) break :blk 128;
|
if (cpu.has(.s390x, .vector)) break :blk 128;
|
||||||
} else if (cpu.arch.isSPARC()) {
|
} else if (cpu.arch.isSPARC()) {
|
||||||
if (cpu.hasAny(.sparc, &.{ .vis, .vis2, .vis3 })) break :blk 64;
|
if (cpu.hasAny(.sparc, &.{ .vis, .vis2, .vis3 })) break :blk 64;
|
||||||
|
} else if (cpu.arch == .kvx) {
|
||||||
|
break :blk 1024;
|
||||||
} else if (cpu.arch == .ve) {
|
} else if (cpu.arch == .ve) {
|
||||||
if (cpu.has(.ve, .vpu)) break :blk 2048;
|
if (cpu.has(.ve, .vpu)) break :blk 2048;
|
||||||
} else if (cpu.arch.isWasm()) {
|
} else if (cpu.arch.isWasm()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue