[Vector API] Missing a way to know which operators are preferred
    Michaël Figuière 
    michael.figuiere at gmail.com
       
    Fri Oct 14 17:56:15 UTC 2022
    
    
  
Hello,
A suggestion based on my small experience with the Vector API: it's
currently possible to know for
a given type which VectorSpecies is preferred on the current platform, but
it's not the case for
Operator. As the Vector API is all about improved performance, an
application developer would
want to know which Operator will be preferred (i.e. backed by an
appropriate SIMD instruction) on
a targeted platform. Similarly, a library developer would want to be able
to pick at runtime between
different implementations of an algorithm.
That could look like:
boolean VectorOperators.Operator#isPreferredWith(VectorSpecies)
I haven't looked at the implementation details but I assume that it would
be doable as the Operator
actual implementation is already picked based on CPU instructions
availability.
Thanks,
Michaël
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20221014/03f2fa43/attachment-0001.htm>
    
    
More information about the panama-dev
mailing list