[code-reflection] Integrated: [hat][bfloat16] round-to-nearest-even implemented

Juan Fumero jfumero at openjdk.org
Tue Jan 13 15:16:08 UTC 2026


On Mon, 12 Jan 2026 13:19:00 GMT, Juan Fumero <jfumero at openjdk.org> wrote:

> Extension of the `bfloat16` type to support round-nearest-to-even. This improves precision for some of the test cases. 
> 
> How to test? 
> 
> 
>  HAT=SHOW_CODE java -cp hat/job.jar hat.java test ffi-cuda hat.test.TestBFloat16Type
> 
>  HAT=SHOW_CODE java -cp hat/job.jar hat.java test ffi-opencl hat.test.TestBFloat16Type
> 
> 
> This patch has been checked for MacOS (opencl-only) and Linux (OpenCL and CUDA).
> 
> Thank @jddarcy for the advise on this.

This pull request has now been integrated.

Changeset: a41e7ec4
Author:    Juan Fumero <jfumero at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/a41e7ec429f060cf00e08afc8f4509fc6be8748c
Stats:     116 lines in 7 files changed: 63 ins; 19 del; 34 mod

[hat][bfloat16] round-to-nearest-even implemented

Co-authored-by: Joe Darcy <darcy at openjdk.org>

-------------

PR: https://git.openjdk.org/babylon/pull/830


More information about the babylon-dev mailing list