-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8346236: Auto vectorization support for various Float16 operations #22755
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
Conversation
|
👋 Welcome back jbhateja! A progress list of the required criteria for merging this PR into |
|
@jatin-bhateja This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 124 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@jatin-bhateja The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
@jatin-bhateja This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@jatin-bhateja this pull request can not be integrated into git checkout JDK-8346236
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
7d27077 to
33fc9b0
Compare
f1fc1b6 to
f6178b7
Compare
Webrevs
|
|
@jatin-bhateja This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
|
/open |
|
@jatin-bhateja This pull request is now open |
test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
Show resolved
Hide resolved
test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
Show resolved
Hide resolved
test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
Outdated
Show resolved
Hide resolved
|
There is a test failure in GHA. A merge with master would be good. |
0da8cea to
784a4ec
Compare
|
@jatin-bhateja Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
Outdated
Show resolved
Hide resolved
Hi @eme64 |
test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
Outdated
Show resolved
Hide resolved
sviswa7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
Hi @eme64 , Please let us know if there are further comments. |
|
@jatin-bhateja I think it looks good now, but let me run some more tests :) |
Hi @eme64 , please let us know if this is good to land :-) |
eme64
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No related test failures :) 🟢
Approved, thanks for the work @jatin-bhateja 😊
|
/integrate |
|
Going to push as commit 9a3f999.
Your commit was automatically rebased without conflicts. |
|
@jatin-bhateja Pushed as commit 9a3f999. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This is a follow-up PR for #22754
The patch adds support to vectorize various float16 scalar operations (add/subtract/divide/multiply/sqrt/fma).
Summary of changes included with the patch:
Following are the performance numbers of Float16OperationsBenchmark
System : Intel(R) Xeon(R) Processor code-named Granite rapids
Frequency fixed at 2.5 GHz
Java implementation of Float16.isNaN API is not auto-vectorizer friendly, and the existence of multiple conditional expressions prevents inferring conditional compare IR, while vectorization of Float16.isFinite and Float16.isInfinite APIs is possible on inferring VectorBlend for a contiguous pack of CMoveI IR in the presence of -XX:+UseVectorCmov and -XX:+UseCMoveUnconditionally runtime flags, we plan to optimize these APIs through scalar intrinsification and its auto-vectorization support in a subsequent patch.
Kindly review and share your feedback.
Best Regards,
Jatin
PS: PR #21414 replaced vector lane type (Type*) with the BasicType in the ideal type (TypeVect) associated with vector IR; thus, even though we have an explicit scalar type (TypeH) for Float16 IR, we do not retain this information in TypeVect. Purely from an ideal type perspective, ShortVector and Float16Vector are similar; we therefore rely on IR specialization to differentiate a short vector operation from Float16 operations.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22755/head:pull/22755$ git checkout pull/22755Update a local copy of the PR:
$ git checkout pull/22755$ git pull https://git.openjdk.org/jdk.git pull/22755/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22755View PR using the GUI difftool:
$ git pr show -t 22755Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22755.diff
Using Webrev
Link to Webrev Comment