Intrinsics For Vector API
Paul Sandoz
paul.sandoz at oracle.com
Thu Aug 3 22:22:18 UTC 2017
Hi,
Nice work.
Would you mind updating the patch to be in sync with the recent refactoring i made to the draft spec API?
Notably, all classes are now under one package, com.oracle.vector, and the methods to create vector instance have been moved to the species e.g.:
FloatVector.FloatSpecies<Shapes.S256Bit> species = (FloatVector.FloatSpecies<Shapes.S256Bit>)
Vector.speciesInstance(Float.class, Shapes.S_256_BIT);
for (int i = 0; i < a.length; i += species.length()) {
FloatVector<Shapes.S256Bit> av = species.fromArray(a, i);
FloatVector<Shapes.S256Bit> bv = species.fromArray(b, i);
av.add(bv).intoArray(c, i);
}
Thanks,
Paul.
> On 1 Aug 2017, at 17:12, Deshpande, Vivek R <vivek.r.deshpande at intel.com> wrote:
>
> Hi All
>
> We would like to share the webrev for the Intrinsics for Vector APIs, which add the partial intrinsification support to the APIs.
> Webrev: http://cr.openjdk.java.net/~vdeshpande/Panama/webrev.00/
> Code Contributed by:
> Razvan Lupusoru (razvan.a.lupusoru at intel.com<mailto:razvan.a.lupusoru at intel.com>)
> Vivek Deshpande(vivek.r.deshpande at intel.com)
>
> The AddTest.java in jdk\test\panama\vector-draft-spec\src\test\java can be run like this:
> java -XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:-CheckIntrinsics -XX:TypeProfileLevel=121 -XX:+UseVectorApiIntrinsics -XX:+DebugVectorApi AddTest
>
> Thanks.
> Regards,
> Vivek
>
>
>
More information about the panama-dev
mailing list