[code-reflection] Integrated: Hat bld and dir changes in prep for separating native ffi and jextracted backends

Gary Frost gfrost at openjdk.org
Mon Dec 16 11:27:31 UTC 2024


On Mon, 16 Dec 2024 11:15:53 GMT, Gary Frost <gfrost at openjdk.org> wrote:

> This looks like a huge change, but is mostly moving backend files around to allow us to have ffi backends (needing cmake to compile c++ source), jextracted backends (which rely on jextract to allow us to skip cmake) and pure java backends (sq and mt)
> 
> So under backends we now have an extra dir
> 
> backends
>     +-- ffi
>     |         +-- opencl
>     |         +-- cuda         
>     +-- jextracted
>     |         +-- TBA
>     +--java
>     |       +-- seq
>     |      +-- mt
> 
> The various project java srcs also have the appropriate packege name (say hat.backends.ffi.opencl) to avoid collisions if we were to ever consider including both in the path. 
>  
> This does effect how we run examples.  We need to include the 'type' of backend with hatrun, so 'ffi-opencl' instead of previous 'opencl'
> 
> java @ bldr/hatrun ffi-opencl heal

This pull request has now been integrated.

Changeset: 490332b1
Author:    Gary Frost <gfrost at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/490332b12e479d8a0c164cb32dab1def982d8fce
Stats:     8413 lines in 168 files changed: 4572 ins; 3139 del; 702 mod

Hat bld and dir changes in prep for separating native ffi and jextracted backends

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

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


More information about the babylon-dev mailing list