How to use Intel AVX in Java?

How to use Intel AVX vector instruction set from Java? This is a simple question, but the answer seems hard to find.

+6
source share
5 answers

As I know, most modern Java JVM-JITMs do not support automatic vectorization or just do it for very simple loops, so you're out of luck.

In the implementation of Mono.NET was Mono.Simdfor the manual emission of vector code, and then MS introduced System.Numeric.Vectors. Unfortunately, in Java there is nothing similar. I don’t know if the Java vector class is vectorized using SIMD or not, but I don’t think so.

, AVX, - JNI. C C++ Java

Scala - JVM, JVM 40


:

API

, jdk.incubator.vector, , , , , .

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


:

+3

Java, , JavaCV. Intel, , NVIDIA.

+1

- Aparapi Intel OpenCL. ( , , OpenCL.)

- JNI ++, AVX .

0

yeppp. Java - SIMD.

http://www.yeppp.info

0

Source: https://habr.com/ru/post/1569112/


All Articles