5 ms·
AFAIK the Java Vector API is like Vector<T> not like the intrinsics one
by brewmarche 3y ago
AFAIK the Java Vector API is like Vector<T> not like the intrinsics one
- za3faran 3y agoNot quite: * https://openjdk.org/jeps/417 https://openjdk.org/jeps/417 * https://youtu.be/1JeoNr6-pZw https://youtu.be/1JeoNr6-pZw
- rotifer 3y agoI expect they are referring to the "Vector API" described in JEP 426: Vector API [1]. From the summary: Introduce an API to express vector computations that reliably compile at runtime to optimal vector instructions on supported CPU architectures, thus achieving performance superior to equivalent scalar computations. [1] https://openjdk.org/jeps/426 https://openjdk.org/jeps/426
- brewmarche 3y agoYes. Where does it expose the AVX or ARM intrinsics? I only see generic add/neg/mul methods (thus the comparison to .NET Vector<T>) and not the intrinsics exposed thhemselves; here is a random pick from the .NET ones: https://learn.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.x86.avx2.loadalignedvector256nontemporal?view=net-7.0#system-runtime-intrinsics-x86-avx2-loadalignedvector256nontemporal(system-uint32 https://learn.microsoft.com/en-us/dotnet/api/system.runtime....*)