RFR: 8370922: Template Framework Library: Float16 type and operations
Emanuel Peter
epeter at openjdk.org
Mon Dec 15 11:20:36 UTC 2025
On Wed, 10 Dec 2025 11:38:28 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> We should test `Float16` with Template Framework Tests. For this, I'm now implementing:
>>
>> - Template Framework Library: add `Float16Type` that represents `Float16`. Extend `Operations.java` with `Float16` operations.
>> - `Verify.java`: add verification for `Float16`, and corresponding tests in `TestVerifyIncubatorVector.java`. We could have done this separately, but it is not much code and completes the pipeline from code generation through execution and finally result verification in the following two tests.
>> - Adding `Float16` to `ExpressionFuzzer.java` and `TestExpressions.java`.
>
> Can someone please review this?
> @eme64 I have one additional question. How did you test this? Did you have HF hardware access or did you emulate it? In a recent chat with @benoitmaillard, I think he mentioned about using QEMU to emulate and do some testing.
I ran it through out internal testing machines. Some of them do have specific hardware support for Float16 operations :)
I've used QEMU in the past for Float16 and SVE, but it is relatively slow, so I did not bother with that for this PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28095#issuecomment-3655089262
More information about the hotspot-compiler-dev
mailing list