[code-reflection] RFR: [hat] Proposal for bfloat16 [v6]
Juan Fumero
jfumero at openjdk.org
Wed Dec 3 15:03:48 UTC 2025
> This PR introduces the type [`bfloat16`](https://cloud.google.com/blog/products/ai-machine-learning/bfloat16-the-secret-to-high-performance-on-cloud-tpus) for HAT.
>
> Testing for OpenCL:
>
>
> HAT=SHOW_CODE java -cp hat/job.jar hat.java test ffi-opencl hat.test.TestBFloat16Type
>
>
> Testing for CUDA:
>
>
> HAT=SHOW_CODE java -cp hat/job.jar hat.java test ffi-cuda hat.test.TestBFloat16Type
>
>
> Some tests are expecting to fail due to precision error. We will need to improve the type conversion with round-to-nearest-even for example.
Juan Fumero has updated the pull request incrementally with one additional commit since the last revision:
[hat] DeviceTypes control for the dialect and codegen simplified
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/716/files
- new: https://git.openjdk.org/babylon/pull/716/files/b5dfe87f..e672cd0f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=716&range=05
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=716&range=04-05
Stats: 147 lines in 13 files changed: 69 ins; 55 del; 23 mod
Patch: https://git.openjdk.org/babylon/pull/716.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/716/head:pull/716
PR: https://git.openjdk.org/babylon/pull/716
More information about the babylon-dev
mailing list