Usage of the Vector API in java.base
Paul Sandoz
paul.sandoz at oracle.com
Fri Oct 2 23:24:48 UTC 2020
Hi,
Perhaps a good location is within the embedded vector benchmarks project:
https://github.com/openjdk/panama-vector/tree/vectorIntrinsics/test/jdk/jdk/incubator/vector/benchmark
> On Oct 2, 2020, at 1:07 PM, Ludovic Henry <luhenry at microsoft.com> wrote:
>
> Hi Paul,
>
>> That will help us evaluate. Is that something you are interested in pursuing?
>
> I'm absolutely interested to do so. Where would be the best place to contribute to in the repo?
>
>> In that spirit, I think what is valuable right now is identifying the use-cases in java.base and writing stand alone examples.
>
> I very much agree. I'll start doing implementing some locally and submit a PR whenever I've anything substantial.
>
> As for identifying what use-cases are valuable, I'll document what I have and sent it your way in this discussion. Does that work for you?
Yes, thanks.
>
>> If the value of leveraging the Vector API functionality from within java.base is considered large enough, there is another option we could consider at a future point.
>
> Learning from other runtimes who have vectorized some algorithms from their core libraries, there are some substantial gains to get. I'm interested in getting some more concrete numbers for the OpenJDK specifically.
>
> For the integration to java.base, do you expect we are talking of being months away or years away?
>
More the later scenario. While I don’t anticipate making large functional changes to the API and will endeavor to preserve compatibility where possible Valhalla may well necessitate some breaking changes for the better (with generic specialization).
Paul.
More information about the panama-dev
mailing list