JetBrains-Research / viktor

Efficient f64-only ndarray in Kotlin
MIT License
125 stars 6 forks source link

Investigate Vector API #43

Closed dievsky closed 3 years ago

dievsky commented 3 years ago

Java 16 apparently comes with some built-in support for vectorized operations.

We should investigate what exactly is being offered, how effective it is, and does it make the SIMD part of viktor only relevant for the older JDKs.

dievsky commented 3 years ago

https://openjdk.java.net/jeps/338

dievsky commented 3 years ago

Played a bit with the new API. Currently it doesn't offer any SIMD mathematics (exponent, logarithm, etc.), so viktor is safe for now.

The one thing that intrigued me is the possibility of masked calculations (performing calculations only on specific parts of a SIMD vector).