-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use JVM Vector API? #47
Comments
Last time I looked at it (half a year ago), there was no SIMD mathematics there, and |
What exactly should I look for under that link? |
|
I must shamefully admit that it's pretty hard for me to communicate with people speaking in links and quotes. |
As for me, SIMD support means that at least vector arithmetic is optimized. |
I think it would be OK even if they didn't provide other elementary functions: there's nothing wrong in falling back into scalar mathematics for everything except arithmetic. |
Ah, now I get it. The funny thing is that the array loop arithmetic is already SIMDized, even in JDK 1.8. Every time I've checked, the C2 compiler successfully emitted AVX instructions for arithmetic operations. That's why we stopped delegating the arithmetic to JNI since So switching to Vector API will currently make the code less readable and portable, while not improving the performance. (Well, okay, maybe the performance will improve by a couple percent because we will skip the warmup phase.) |
A possible way to implement the array are intrinsics introduced with JEP 338.
The text was updated successfully, but these errors were encountered: