Skip to content

Use half2 and float2 types/operators for Vamana build L2 metrics #2510

Description

@bkarsin

The Vamana index build has several different L2 comparator methods based on the dataset dimension and datatype. For large dimensions, each thread loads several values and accumulates the total to increase ILP, but each value is loaded independently. For the __half and float types we can improve performance by using the half2 and float2 types and using the __hfma2, __hsub2, __fmaf2, and __fsub2 operators to calculate and accumulate the L2 distnace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions