Skip to content

Add Support for Vector512 in BinaryPrimitives.ReverseEndianness.cs #108204

Open

Description

@masterworgen

Issue Summary:
Currently, the BinaryPrimitives.ReverseEndianness.cs file in the .NET runtime includes methods that utilize Vector128 and Vector256 for reversing endianness. However, there is no support for Vector512. To enhance performance on hardware that supports Vector512 (e.g., AVX-512 capable processors), it would be beneficial to extend these methods to also handle Vector512.

Proposed Solution:
Implement additional overloads or logic within the existing methods to utilize Vector512 when supported by the hardware.
Ensure that the fallback mechanism for hardware without AVX-512 support remains in place.
Provide appropriate unit tests to validate the functionality of reversing endianness using Vector512.
Benefit:
By supporting Vector512, we can potentially achieve better performance on modern hardware with AVX-512 capabilities, especially in scenarios where large volumes of data require endianness conversion.

Additional Considerations:
Ensure backward compatibility with existing usages of Vector128 and Vector256.
If necessary, include benchmarks comparing the performance gains between Vector128, Vector256, and Vector512 implementations.
Thank you for considering this enhancement.

Activity

  1. added
    untriaged
    on Sep 24, 2024
  2. dotnet-policy-service commented on Sep 24, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics
    See info in area-owners.md if you want to be subscribed.

  3. added
    in-pr
    on Sep 30, 2024
  4. added
    needs-further-triage
    and removed
    untriaged
    on Sep 30, 2024
  5. added this to the Future milestone on Sep 30, 2024
  6. removed
    needs-further-triage
    on Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Runtime.Intrinsicsin-pr

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions