Skip to content

8314544: Matrix multiply benchmark using Vector API #15338

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

Closed
wants to merge 5 commits into from

Conversation

Styp
Copy link

@Styp Styp commented Aug 18, 2023

Added a bunch of different implementations for Vector API Matrix Multiplications:

  • Baseline
  • Blocked (Cache Local)
  • FMA
  • Vector API Simple Implementation
  • Vector API Blocked Implementation

Commit was discussed with @PaulSandoz


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-8314544: Matrix multiply benchmark using Vector API (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 15338

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 18, 2023

👋 Welcome back Styp! 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 openjdk bot added the rfr Pull request is ready for review label Aug 18, 2023
@openjdk
Copy link

openjdk bot commented Aug 18, 2023

@Styp The following label will be automatically applied to this pull request:

  • core-libs

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 core-libs core-libs-dev@openjdk.org label Aug 18, 2023
@mlbridge
Copy link

mlbridge bot commented Aug 18, 2023

Webrevs

}

private static float[] newFloatRowMatrix(int size) {
Random rand = new Random();
Copy link
Member

Choose a reason for hiding this comment

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

Instead we can use the new random generator API e.g,:

var rand = RandomGenerator.getDefault();

This is not super important, but its good practice to try and use more preferred APIs.

import java.util.concurrent.TimeUnit;

import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
Copy link
Member

Choose a reason for hiding this comment

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

Unused import.

@Styp
Copy link
Author

Styp commented Aug 21, 2023

Changed according to comments.

Copy link
Member

@e1iu e1iu left a 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.

@sviswa7
Copy link

sviswa7 commented Oct 3, 2023

@Styp Please correct the title in the PR. There is title mismatch between PR and JBS.
PR title: Matrix multiple benchmark using Vector API
"multiple" vs "multiply"

@Styp Styp changed the title 8314544: Matrix multiple benchmark using Vector API 8314544: Matrix multiply benchmark using Vector API Oct 6, 2023
@Styp
Copy link
Author

Styp commented Oct 6, 2023

fixed typo.

@openjdk
Copy link

openjdk bot commented Oct 6, 2023

@Styp 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:

8314544: Matrix multiply benchmark using Vector API

Reviewed-by: psandoz, eliu

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 1495 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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@PaulSandoz, @e1iu) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 6, 2023
@sviswa7
Copy link

sviswa7 commented Oct 6, 2023

@Styp Thanks, the next step would be for you to flag this PR as ready for integration by typing /integrate in a new github comment and submit. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 3, 2023

@Styp This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 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!

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 4, 2024

@Styp 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 pull request command.

@bridgekeeper bridgekeeper bot closed this Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

4 participants