[code-reflection] Integrated: CUDA and OpenCL C99 code now identical except for handling of atomics
Gary Frost
gfrost at openjdk.org
Sat Oct 4 11:06:31 UTC 2025
On Sat, 4 Oct 2025 11:00:19 GMT, Gary Frost <gfrost at openjdk.org> wrote:
> Generated code essentially same for CUDA and OpenCL.
>
> Not only does this lend itself to simpler codegen, it also opens the doorway to a HAT C99 dialect which we can use for prototyping and even intrinsics
>
> Check the code generated for
>
> HAT=SHOW_CODE java @hat/test ffi-opencl
> HAT=SHOW_CODE java @hat/test ffi-cuda
> ```
> The only differences should be the generated preprocessor macros.
>
> We need to deal with atomics .... somehow. Still thinking about that.
This pull request has now been integrated.
Changeset: b46f103b
Author: Gary Frost <gfrost at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/b46f103b7cafa6216ee82fbc2c557a10883b1728
Stats: 90 lines in 3 files changed: 0 ins; 28 del; 62 mod
CUDA and OpenCL C99 code now identical except for handling of atomics
-------------
PR: https://git.openjdk.org/babylon/pull/603
More information about the babylon-dev
mailing list