Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8226368

[vector] Hide fixed length SPECIES for portability

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Since we already have SPECIES_PREFERRED, which should be able to choose preferred vector length, I don't quite understand why we need to expose other fixed length SPECIES(SPECIES_128, SPECIES_256, SPECIES_512, SPECIES_64, SPECIES_MAX), which are not that portable (big performance drop) cross platforms.

      Even if there's any use case that fixed length species are required. I think the example code in [2] would better use SPECIES_PREFERRED instead of FloatVector.SPECIES_512, and highlight that *SPECIES_PREFERRED* is recommended.

      Previous discussion can also be found in [1].
      [1] https://mail.openjdk.java.net/pipermail/panama-dev/2019-April/005263.html
      [2] http://cr.openjdk.java.net/~kkharbas/vector-api/CSR/javadoc/jdk.incubator.vector/jdk/incubator/vector/package-summary.html


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yzhang Yang Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: