Skip to content

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants