authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-25 11:19:37-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-19 09:37:53-07:00
loge36ec537f2127f71a2e8c8a207136226c9848fb9
treec100e7527ccd0eac41dc2f500a5bc60c9b234679
parentfe63d15d07bde0cf1687c3d168cffec5618b6d65

nvptx: omit sm_90a from the CPU target features for now

There seems to be an LLVM bug with this feature. Since it's new, let's collect more information before adding it.

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

lib/std/target/nvptx.zig-14
...@@ -47,7 +47,6 @@ pub const Feature = enum {...@@ -47,7 +47,6 @@ pub const Feature = enum {
47 sm_87,47 sm_87,
48 sm_89,48 sm_89,
49 sm_90,49 sm_90,
50 sm_90a,
51};50};
5251
53pub const featureSet = CpuFeature.feature_set_fns(Feature).featureSet;52pub const featureSet = CpuFeature.feature_set_fns(Feature).featureSet;
...@@ -269,11 +268,6 @@ pub const all_features = blk: {...@@ -269,11 +268,6 @@ pub const all_features = blk: {
269 .description = "Target SM 90",268 .description = "Target SM 90",
270 .dependencies = featureSet(&[_]Feature{}),269 .dependencies = featureSet(&[_]Feature{}),
271 };270 };
272 result[@intFromEnum(Feature.sm_90a)] = .{
273 .llvm_name = "sm_90a",
274 .description = "Target SM 90a",
275 .dependencies = featureSet(&[_]Feature{}),
276 };
277 const ti = @typeInfo(Feature);271 const ti = @typeInfo(Feature);
278 for (&result, 0..) |*elem, i| {272 for (&result, 0..) |*elem, i| {
279 elem.index = i;273 elem.index = i;
...@@ -442,12 +436,4 @@ pub const cpu = struct {...@@ -442,12 +436,4 @@ pub const cpu = struct {
442 .sm_90,436 .sm_90,
443 }),437 }),
444 };438 };
445 pub const sm_90a = CpuModel{
446 .name = "sm_90a",
447 .llvm_name = "sm_90a",
448 .features = featureSet(&[_]Feature{
449 .ptx80,
450 .sm_90a,
451 }),
452 };
453};439};