authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-17 01:57:10+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-26 21:59:59+02:00
log385f586605aaf8abe303bf64f9c40209088e874e
tree171b716ed349151c489c7c6b1fb19ac3ae2c6e41
parent2d22cc9f61ea2a721b16417e9b8acfcf32067818
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Use sm_52 as the baseline CPU model for nvptx.

This matches Clang's default.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Target.zig+1-1
...@@ -1860,10 +1860,10 @@ pub const Cpu = struct {...@@ -1860,10 +1860,10 @@ pub const Cpu = struct {
1860 .hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model.1860 .hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model.
1861 .lanai => &lanai.cpu.v11, // clang does not have a generic lanai model.1861 .lanai => &lanai.cpu.v11, // clang does not have a generic lanai model.
1862 .loongarch64 => &loongarch.cpu.loongarch64,1862 .loongarch64 => &loongarch.cpu.loongarch64,
1863 .nvptx, .nvptx64 => &nvptx.cpu.sm_52,
1863 .powerpc64le => &powerpc.cpu.ppc64le,1864 .powerpc64le => &powerpc.cpu.ppc64le,
1864 .riscv32 => &riscv.cpu.baseline_rv32,1865 .riscv32 => &riscv.cpu.baseline_rv32,
1865 .riscv64 => &riscv.cpu.baseline_rv64,1866 .riscv64 => &riscv.cpu.baseline_rv64,
1866 .nvptx, .nvptx64 => &nvptx.cpu.sm_20,
1867 .s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.1867 .s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
1868 .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.1868 .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
1869 .x86 => &x86.cpu.pentium4,1869 .x86 => &x86.cpu.pentium4,