Skip to content

std.Target: allow omitting features #23539

@alichraghi

Description

@alichraghi

Some amdgcn gpu models (e.g. gfx1031) may or may not support XNACK and SRAMECC features, therefore LLVM has multiple settings for them (On, Off, Unsupported and Any). Since zig features are either on or off, there's no way to set them to Unsupported because std.Target has no concept of omitting features. making it impossible to compile for such gpu models because LLVM writes an error (with warning: label/prefix..).

Related: llvm/llvm-project@2291bd1
Zulip discussion: #compiler > dynamic amdgcn target features

Metadata

Metadata

Assignees

Labels

breakingImplementing this issue could cause existing code to no longer compile or have different behavior.enhancementSolving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions