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

Use "native" for .NET 8, don't use "serialize" for .NET 7 #2464

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

adamsitnik
Copy link
Member

Use "native" for .NET 8, don't use "serialize" for .NET 7.

fixes #2060
fixes #2463

cc @MichalStrehovsky

@adamsitnik adamsitnik added this to the v0.13.11 milestone Nov 14, 2023
@@ -242,7 +256,7 @@ private static IEnumerable<string> GetCurrentProcessInstructionSets(Platform pla
if (HardwareIntrinsics.IsX86PclmulqdqSupported) yield return "pclmul";
if (HardwareIntrinsics.IsX86PopcntSupported) yield return "popcnt";
if (HardwareIntrinsics.IsX86AvxVnniSupported) yield return "avxvnni";
if (HardwareIntrinsics.IsX86SerializeSupported) yield return "serialize";
if (HardwareIntrinsics.IsX86SerializeSupported && runtimeMoniker > RuntimeMoniker.NativeAot70) yield return "serialize"; // https://github.com/dotnet/BenchmarkDotNet/issues/2463#issuecomment-1809625008
Copy link
Member

Choose a reason for hiding this comment

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

This list is missing intrinsics added in .NET 8 but maybe that's not relevant if this is for 7 and below.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. But as you wrote, it's not relevant if we use "native" in .NET 8

@adamsitnik adamsitnik merged commit e93b2b1 into master Nov 14, 2023
9 of 12 checks passed
@adamsitnik adamsitnik deleted the nativeAot7Serialize branch November 14, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants