[code-reflection] Integrated: Example use of code reflection in translating Java to SPIR-V
Steve Dohrmann
duke at openjdk.org
Thu Mar 14 18:43:57 UTC 2024
On Tue, 12 Mar 2024 22:35:00 GMT, Steve Dohrmann <duke at openjdk.org> wrote:
> Example code showing use of code reflection in translation from Java to SPIR-V intermediate language. For more information on SPIR-V see [https://www.khronos.org/spir](https://www.khronos.org/spir).
>
> Translates from a Java CoreOps.FuncOp object to a SpirvOps.FuncOp object and then to an entry point in a SPIR-V binary module. One test is included that demonstrates use and renders the Java model, SPIR-V model, and disassembled binary representations of an example Java method.
>
> A subsequent pull-request will provide additional test code, including the ability to test SPIR-V binaries on GPU hardware.
>
> Dependencies:
>
> This code depends on a Java SPIR-V builder API (https://github.com/beehive-lab/beehive-spirv-toolkit). The toolkit can be installed locally with:
>
> git clone https://github.com/beehive-lab/beehive-spirv-toolkit
> cd beehive-spirv-toolkit
> mvn clean install
This pull request has now been integrated.
Changeset: 459ba14f
Author: steveatgh <steve.dohrmann at intel.com>
Committer: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/459ba14f646faa03363a3a1c9ebfd3c1cdf5d145
Stats: 2446 lines in 10 files changed: 2446 ins; 0 del; 0 mod
Example use of code reflection in translating Java to SPIR-V
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.org/babylon/pull/38
More information about the babylon-dev
mailing list