Skip to content

[hat] Tensor - Matrix-Multiplication Example for GPUs#1009

Closed
jjfumero wants to merge 72 commits intoopenjdk:code-reflectionfrom
jjfumero:hat/tensors/experiments
Closed

[hat] Tensor - Matrix-Multiplication Example for GPUs#1009
jjfumero wants to merge 72 commits intoopenjdk:code-reflectionfrom
jjfumero:hat/tensors/experiments

Conversation

@jjfumero
Copy link
Copy Markdown
Member

@jjfumero jjfumero commented Apr 20, 2026

How to run?

We recommend running this example with the CUDA backend to be able to generate tensor instructions.

java @hat/run ffi-cuda tensors --iterations=100 --verbose --size=2048

OpenCL:

java @hat/run ffi-opencl tensors --iterations=100 --verbose --size=2048

This PR depends on the #998. Thus, we should merge that first before this one.



Progress

  • Change must not contain extraneous whitespace

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1009

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/babylon/pull/1009.diff

Using Webrev

Link to Webrev Comment

jjfumero added 30 commits March 9, 2026 11:14
@jjfumero jjfumero self-assigned this Apr 20, 2026
@jjfumero jjfumero changed the title Tensor - Matrix-Multiplication Example for GPUs [hat] Tensor - Matrix-Multiplication Example for GPUs Apr 20, 2026
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Apr 20, 2026

👋 Welcome back jfumero! A progress list of the required criteria for merging this PR into code-reflection 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
Copy Markdown

openjdk Bot commented Apr 20, 2026

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

[hat] Tensor - Matrix-Multiplication Example for GPUs

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 code-reflection 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.

➡️ To integrate this PR with the above commit message to the code-reflection branch, type /integrate in a new comment.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 20, 2026

⚠️ @jjfumero This pull request contains merges that bring in commits not present in the target repository. Since this is not a "merge style" pull request, these changes will be squashed when this pull request in integrated. If this is your intention, then please ignore this message. If you want to preserve the commit structure, you must change the title of this pull request to Merge <project>:<branch> where <project> is the name of another project in the OpenJDK organization (for example Merge jdk:master).

@jjfumero
Copy link
Copy Markdown
Member Author

/template append

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 21, 2026

@jjfumero The pull request template has been appended to the pull request body

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 21, 2026

@jjfumero this pull request can not be integrated into code-reflection due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout hat/tensors/experiments
git fetch https://git.openjdk.org/babylon.git code-reflection
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge code-reflection"
git push

@openjdk openjdk Bot added merge-conflict Pull request has merge conflict with target branch rfr Pull request is ready for review labels Apr 21, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Apr 21, 2026

Webrevs

@openjdk openjdk Bot added ready Pull request is ready to be integrated and removed merge-conflict Pull request has merge conflict with target branch labels Apr 21, 2026
@jjfumero
Copy link
Copy Markdown
Member Author

Since we rolled back the new API for tensors from the main branch, this PR can be closed without the merge. New tensor API development is still active and in progress in another branch:

https://github.com/jjfumero/babylon/tree/hat/tensors/experiments

Studying ways to improve expressiveness and higher level abstractions.

@jjfumero jjfumero closed this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant