Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm64: Add SVE feature detection for Windows #100937

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

kunalspathak
Copy link
Member

No description provided.

@kunalspathak
Copy link
Member Author

@dotnet/arm64-contrib

@kunalspathak kunalspathak changed the title Add SVE feature detection for Windows Arm64: Add SVE feature detection for Windows Apr 11, 2024
@@ -458,6 +462,11 @@ int minipal_getcpufeatures(void)

// TODO: IsProcessorFeaturePresent doesn't support LRCPC2 yet.

if (IsProcessorFeaturePresent(PF_ARM_SVE_INSTRUCTIONS_AVAILABLE))
{
result |= ARM64IntrinsicConstants_Sve;
Copy link
Member

Choose a reason for hiding this comment

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

Does this give us parity between Linux/Windows at this point or are there others that are still missing on Windows that Linux currently handles?

Copy link
Member Author

Choose a reason for hiding this comment

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

ARM64IntrinsicConstants_Rcpc2 and ARM64IntrinsicConstants_Rdm are still missing and I didn't see their equivalent yet on windows side.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

LRCPC2 is supported since Windows 11 22H2.

I don't see an entry of LRCPC2 in that. It just has LRCPC that is mapped to 45.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it's not LRCPC2. Not a big deal though, it's just a minor optimization on top of RCPC1

@kunalspathak kunalspathak merged commit 8a82c6c into dotnet:main Apr 12, 2024
163 checks passed
@kunalspathak kunalspathak deleted the windows-sve branch April 12, 2024 17:55
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
* Add SVE feature detection for Windows

* Move the PF_ARM_SVE_INSTRUCTIONS_AVAILABLE under HOST_WINDOWS
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arm-sve Work related to arm64 SVE/SVE2 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants