-
Notifications
You must be signed in to change notification settings - Fork 29
[proposal][hat] Enabling local/shared memory and local barriers within compute methods #531
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
base: code-reflection
Are you sure you want to change the base?
Conversation
… between global and local
👋 Welcome back jfumero! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@jjfumero this pull request can not be integrated into git checkout hat/api/shared
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 |
|
WIP: This patch enables a new extension for HAT to allow the use of local memory (as in OpenCL) / shared memory (CUDA). This extension is preliminary, and the implementation can be improved to use a new HAT dialect with new Ops from code reflection (Babylon).
This extension brings two new calls to the API:
a) Access to local memory
b) Access to local barriers
Example:
This brings low-level GPU programming to HAT, but for now this is just experimentation.
Running a few examples:
a) Reductions:
b) Fast Matrix Mult using loop tiling and local memory:
I will keep this PR as a drat to start iterating, while others developers can start testing and providing feedback.
Progress
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/babylon.git pull/531/head:pull/531
$ git checkout pull/531
Update a local copy of the PR:
$ git checkout pull/531
$ git pull https://git.openjdk.org/babylon.git pull/531/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 531
View PR using the GUI difftool:
$ git pr show -t 531
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/babylon/pull/531.diff