-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Bogdan edited this page Jun 24, 2026
·
6 revisions
JavaToGpu is a source-first Java-to-OpenCL pipeline with an additional structured ASM frontend for advanced integrations.
- Getting Started
- Kernel Programming Model
- Helpers, Pointers, Vectors, Structs
- OpenCL Features
- Runtime Dispatch and ABI
- ASM Frontend
- Troubleshooting
- Examples and References
- Roadmap and Limitations
- write kernels in Java with
@GPU - reuse GPU helpers with
@CCode - use pointer wrappers, vectors, and
@GPUStruct - map kernel parameters to OpenCL address spaces
- compile through source or structured ASM frontends
When you mark a method with @GPU, JavaToGpu:
- parses the Java source,
- validates it against the supported GPU subset,
- lowers it to an internal IR,
- emits OpenCL C,
- generates a launcher,
- rewrites direct calls so runtime execution goes through
GpuRuntime.
- source-first Java kernel authoring
- reusable GPU helper methods
- OpenCL math, indexing, atomics, fences, and barriers
- pointer wrappers for mutable helper-style code
- vector wrappers for OpenCL vector types
-
@GPUStructfor user-defined data layouts - structured ASM frontend for compiler and generator integrations
If you want to write kernels by hand:
- Getting Started
- Kernel Programming Model
- Helpers, Pointers, Vectors, Structs
- OpenCL Features
- Runtime Dispatch and ABI
If you want to integrate another compiler: