Skip to content

Conversation

@Hamlin-Li
Copy link

@Hamlin-Li Hamlin-Li commented May 12, 2025

Hi,
Can you help to review this patch?
It's a follow-up of 9a3f999.
Thanks!

Test

Performance data

Benchmark (vectorDim) Mode Cnt Score - patch Score - master Improvement (master/patch) Error Units
Float16OperationsBenchmark.addBenchmark 256 avgt 10 382.123 2595.718 6.793 0.631 ns/op
Float16OperationsBenchmark.addBenchmark 512 avgt 10 563.726 5167.687 9.167 0.063 ns/op
Float16OperationsBenchmark.addBenchmark 1024 avgt 10 888.455 9468.714 10.658 0.147 ns/op
Float16OperationsBenchmark.addBenchmark 2048 avgt 10 1540.255 18879.796 12.258 0.396 ns/op
Float16OperationsBenchmark.divBenchmark 256 avgt 10 579.959 4028.335 6.946 0.008 ns/op
Float16OperationsBenchmark.divBenchmark 512 avgt 10 914.634 8034.234 8.784 0.027 ns/op
Float16OperationsBenchmark.divBenchmark 1024 avgt 10 1494.017 15125.924 10.124 0.292 ns/op
Float16OperationsBenchmark.divBenchmark 2048 avgt 10 2728.517 30197.97 11.068 32.869 ns/op
Float16OperationsBenchmark.fmaBenchmark 256 avgt 10 476.764 2817.035 5.909 0.012 ns/op
Float16OperationsBenchmark.fmaBenchmark 512 avgt 10 707.035 5239.438 7.41 0.129 ns/op
Float16OperationsBenchmark.fmaBenchmark 1024 avgt 10 1114.29 7361.105 6.606 0.024 ns/op
Float16OperationsBenchmark.fmaBenchmark 2048 avgt 10 1931.713 14465.602 7.488 1.852 ns/op
Float16OperationsBenchmark.maxBenchmark 256 avgt 10 501.892 3754.563 7.481 0.408 ns/op
Float16OperationsBenchmark.maxBenchmark 512 avgt 10 738.148 7450.666 10.094 1.206 ns/op
Float16OperationsBenchmark.maxBenchmark 1024 avgt 10 1195.262 15463.892 12.938 8.889 ns/op
Float16OperationsBenchmark.maxBenchmark 2048 avgt 10 2253.656 30649.239 13.6 6.154 ns/op
Float16OperationsBenchmark.minBenchmark 256 avgt 10 501.873 3753.9 7.48 0.298 ns/op
Float16OperationsBenchmark.minBenchmark 512 avgt 10 732.16 7445.395 10.169 0.779 ns/op
Float16OperationsBenchmark.minBenchmark 1024 avgt 10 1186.985 15349.186 12.931 1.829 ns/op
Float16OperationsBenchmark.minBenchmark 2048 avgt 10 2264.592 30638.19 13.529 2.077 ns/op
Float16OperationsBenchmark.mulBenchmark 256 avgt 10 382.06 2595.757 6.794 0.228 ns/op
Float16OperationsBenchmark.mulBenchmark 512 avgt 10 565.259 5168.078 9.143 0.516 ns/op
Float16OperationsBenchmark.mulBenchmark 1024 avgt 10 889.168 9468.645 10.649 0.159 ns/op
Float16OperationsBenchmark.mulBenchmark 2048 avgt 10 1542.165 18881.248 12.243 1.791 ns/op
Float16OperationsBenchmark.sqrtBenchmark 256 avgt 10 508.016 3908.87 7.694 0.01 ns/op
Float16OperationsBenchmark.sqrtBenchmark 512 avgt 10 827.056 7775.415 9.401 0.045 ns/op
Float16OperationsBenchmark.sqrtBenchmark 1024 avgt 10 1395.414 15508.686 11.114 0.208 ns/op
Float16OperationsBenchmark.sqrtBenchmark 2048 avgt 10 2531.666 31002.463 12.246 3.48 ns/op
Float16OperationsBenchmark.subBenchmark 256 avgt 10 380.344 2617.333 6.881 0.926 ns/op
Float16OperationsBenchmark.subBenchmark 512 avgt 10 564.335 5170.905 9.163 0.937 ns/op
Float16OperationsBenchmark.subBenchmark 1024 avgt 10 889.011 9469.324 10.652 0.144 ns/op
Float16OperationsBenchmark.subBenchmark 2048 avgt 10 1540.936 18881.797 12.253 0.824 ns/op

Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8350960: RISC-V: Add riscv backend for Float16 operations - vectorization (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25181/head:pull/25181
$ git checkout pull/25181

Update a local copy of the PR:
$ git checkout pull/25181
$ git pull https://git.openjdk.org/jdk.git pull/25181/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 25181

View PR using the GUI difftool:
$ git pr show -t 25181

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25181.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 12, 2025

👋 Welcome back mli! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 12, 2025

@Hamlin-Li 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:

8350960: RISC-V: Add riscv backend for Float16 operations - vectorization

Reviewed-by: fyang, dzhang, luhenry

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 186 new commits pushed to the master branch:

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Pull request is ready for review label May 12, 2025
@openjdk
Copy link

openjdk bot commented May 12, 2025

@Hamlin-Li The following label will be automatically applied to this pull request:

  • hotspot-compiler

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.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label May 12, 2025
@mlbridge
Copy link

mlbridge bot commented May 12, 2025

Webrevs

Copy link
Member

@RealFYang RealFYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments after a cursory look. Thanks.

hamlin added 2 commits May 13, 2025 13:40
Copy link
Member

@RealFYang RealFYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated change looks good. And nice JMH numbers!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label May 14, 2025
@Hamlin-Li
Copy link
Author

Updated change looks good. And nice JMH numbers!

Thank you!

Copy link
Member

@DingliZhang DingliZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Hamlin-Li
Copy link
Author

Thank you @luhenry @DingliZhang !

@Hamlin-Li
Copy link
Author

/integrate

@openjdk
Copy link

openjdk bot commented May 19, 2025

Going to push as commit 92fd449.
Since your change was applied there have been 193 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 19, 2025
@openjdk openjdk bot closed this May 19, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 19, 2025
@openjdk
Copy link

openjdk bot commented May 19, 2025

@Hamlin-Li Pushed as commit 92fd449.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@Hamlin-Li Hamlin-Li deleted the float16-vectorized branch May 19, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants