Skip to content

[utils] Enable OS AMX support - #207

Merged
adam-smnk merged 4 commits into
llvm:mainfrom
adam-smnk:utils-os-enable-amx
Jul 1, 2026
Merged

[utils] Enable OS AMX support#207
adam-smnk merged 4 commits into
llvm:mainfrom
adam-smnk:utils-os-enable-amx

Conversation

@adam-smnk

Copy link
Copy Markdown
Member

Adds utility function that enables AMX registers in OS.

Explicit AMX register config is required before AMX instructions can be executed.

Adds utility function that enables AMX registers in OS.

Explicit AMX register config is required before AMX instructions can be
executed.
@adam-smnk
adam-smnk requested a review from rengolin July 1, 2026 07:53
Comment thread tools/kernel-bench
Comment thread examples/KernelBench/test-kernel-bench.py Outdated
Comment thread tools/kernel-bench
)
Parser.add_argument(
"--target",
type=str,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we include choices here to indicate which targets are supported?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd make sense but here I'm just forwarding flags as is.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an open list, we can't list all possible targets, as you can make up something new and connect the dots separately.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In practice, we only support a few according to available pipelines.
Anyway, let's leave that to a separate PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's mostly a service to the user as one can use --help to see what the options are. Otherwise one would have to see where the target is being used an try to reverse-engineer the possible values. But yeah, it increases maintenance burden as we'd need to update the list every time we add support for a new target.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the help string has some examples,we don't have a full list

@rengolin

rengolin commented Jul 1, 2026

Copy link
Copy Markdown
Member

we should merge this before #209 so that we only do this once

@adam-smnk
adam-smnk merged commit 6f14f3a into llvm:main Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants