Skip to content

8343779: Cannot build Vector API JMH benchmarks on vectorIntrinsics branch #221

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 2 commits into from

Conversation

mikabl-arm
Copy link
Contributor

@mikabl-arm mikabl-arm commented Nov 11, 2024

To generate pseudo-random values, the benchmarks mostly reference the
Random RAND object. However, occasionally RANDOM is referenced instead
of RAND. The mismatch causes build errors. Reference RAND across Vector
API JMH benchmarks consistently.

Some benchmarks fail to build due to lossy-conversion compiler warnings
which are configured to be errors. Fix narrowing numerical conversions.


Progress

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

Issue

  • JDK-8343779: Cannot build Vector API JMH benchmarks on vectorIntrinsics branch (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/panama-vector.git pull/221/head:pull/221
$ git checkout pull/221

Update a local copy of the PR:
$ git checkout pull/221
$ git pull https://git.openjdk.org/panama-vector.git pull/221/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 221

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/panama-vector/pull/221.diff

Using Webrev

Link to Webrev Comment

…ranch

To generate pseudo-random values, the benchmarks mostly reference the
Random RAND object. However, occasionally RANDOM is referenced instead
of RAND. The mismatch causes build errors.

Reference RAND across Vector API JMH benchmarks consistently.
@bridgekeeper
Copy link

bridgekeeper bot commented Nov 11, 2024

👋 Welcome back mikabl-arm! A progress list of the required criteria for merging this PR into vectorIntrinsics 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 Nov 11, 2024

@mikabl-arm 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:

8343779: Cannot build Vector API JMH benchmarks on vectorIntrinsics branch

Reviewed-by: psandoz

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 no new commits pushed to the vectorIntrinsics branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential 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) 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 rfr label Nov 11, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 11, 2024

Webrevs

@PaulSandoz
Copy link
Member

Thank you for looking at this. This area has obviously bit rotted.

Many of these classes are generated from templates. You need to modify the templates and run the generation script instead of modifying directly.

See https://github.com/openjdk/panama-vector/blob/vectorIntrinsics/test/jdk/jdk/incubator/vector/README.md
and https://github.com/openjdk/panama-vector/blob/vectorIntrinsics/test/jdk/jdk/incubator/vector/BENCHMARKS.md for details.

See https://github.com/openjdk/panama-vector/tree/vectorIntrinsics/test/jdk/jdk/incubator/vector/templates for the perf-related templates (specifically Perf-Scalar-header.template and Perf-header.template).

Other non-template generated benchmarks also require updating due to additional compiler warnings (which are configured to be errors), specifically about lossy numerical conversion. (See VectorDistance.java, ChaChaBench.java, and Poly1305Bench.java)

Some benchmarks fail to build due to lossy-conversion compiler warnings
which are configured to be errors. Fix narrowing numerical conversions.
@openjdk openjdk bot added the ready label Nov 21, 2024
@mikabl-arm
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor label Nov 21, 2024
@openjdk
Copy link

openjdk bot commented Nov 21, 2024

@mikabl-arm
Your change (at version 4743543) is now ready to be sponsored by a Committer.

@PaulSandoz
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Nov 21, 2024

Going to push as commit 6c94580.

@openjdk
Copy link

openjdk bot commented Nov 21, 2024

@PaulSandoz @mikabl-arm Pushed as commit 6c94580.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants