why oracle graalvm vector api is much slower than openjdk? #9465
-
Hi,all oracle graalvm version: java version "17.0.10" 2024-01-16 LTS openjdk version: java version "17.0.3" 2022-04-19 LTS vm options: thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @whodarewin , GraalVM for JDK 17 does not support the Vector API intrinsics. This support was first added in GraalVM for JDK 21: https://www.graalvm.org/release-notes/JDK_21/ Note the remark in those release notes: "Implemented initial optimization of Java Vector API (JEP 338) operations. Load, store, basic arithmetic, reduce, compare, and blend operations are transformed to efficient machine instructions where possible. [...] Coverage of more operations and Native Image support are planned for the future. This optimization is experimental." It would be great if you could try a newer version of GraalVM. Ideally you could try an early access build from https://github.com/graalvm/oracle-graalvm-ea-builds as these contain all the latest changes. We are constantly improving GraalVM's support for the Vector API. Please also let us know if you have a particular workload that is important to you, and provide a microbenchmark so we can analyze if further optimizations are needed. |
Beta Was this translation helpful? Give feedback.
Hi @whodarewin , GraalVM for JDK 17 does not support the Vector API intrinsics. This support was first added in GraalVM for JDK 21: https://www.graalvm.org/release-notes/JDK_21/
Note the remark in those release notes: "Implemented initial optimization of Java Vector API (JEP 338) operations. Load, store, basic arithmetic, reduce, compare, and blend operations are transformed to efficient machine instructions where possible. [...] Coverage of more operations and Native Image support are planned for the future. This optimization is experimental."
It would be great if you could try a newer version of GraalVM. Ideally you could try an early access build from https://github.com/graalvm/oracle-…