Skip to content

why oracle graalvm vector api is much slower than openjdk? #9465

Answered by gergo-
whodarewin asked this question in Q&A
Discussion options

You must be logged in to vote

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-…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@whodarewin
Comment options

@gergo-
Comment options

Answer selected by gergo-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants