[code-reflection] Integrated: Proposal for supporting Float4.of for CPU host code and GPU device code
Juan Fumero
jfumero at openjdk.org
Fri Oct 31 08:30:41 UTC 2025
On Fri, 24 Oct 2025 15:39:47 GMT, Juan Fumero <jfumero at openjdk.org> wrote:
> This PR adds support for creating float4 objects within the device code:
>
>
> Float4 f = Float4.of(x, y, z ,w)
>
>
> In addition, it provides a CPU implementation for this type a new method to operate in `lanewise`. This operation is CPU only at the moment:
>
>
> Float4 vA ...
> Float4 vB ...
> Float4 vC = vA.linewise(vB, Float::sum);
This pull request has now been integrated.
Changeset: 420c933a
Author: Juan Fumero <jfumero at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/420c933a9e718fa193db4dc76c203fa0e4b2212e
Stats: 811 lines in 29 files changed: 593 ins; 140 del; 78 mod
Proposal for supporting Float4.of for CPU host code and GPU device code
-------------
PR: https://git.openjdk.org/babylon/pull/642
More information about the babylon-dev
mailing list