[code-reflection] RFR: Proposal for supporting Float4.of for CPU host code and GPU device code [v6]
Juan Fumero
jfumero at openjdk.org
Mon Oct 27 12:07:16 UTC 2025
> 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 ...
> vA.linewise(vB, (a, b) -> Float::sum);
Juan Fumero has updated the pull request incrementally with one additional commit since the last revision:
[hat] Log Config bits for OpenCL moved to OpenCL backend instantiation
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/642/files
- new: https://git.openjdk.org/babylon/pull/642/files/3c45324c..251f1a52
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=642&range=05
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=642&range=04-05
Stats: 9 lines in 1 file changed: 5 ins; 4 del; 0 mod
Patch: https://git.openjdk.org/babylon/pull/642.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/642/head:pull/642
PR: https://git.openjdk.org/babylon/pull/642
More information about the babylon-dev
mailing list