Technology
TornadoVM 7 Brings GPU Acceleration Native to Java Developers
The open-source framework now seamlessly compiles Java workloads to run on GPUs, deepening support for Nvidia CUDA and Apple Metal while removing JNI complexity.
InfoQ
Java developers can now tap GPU hardware directly without leaving the Java ecosystem, thanks to TornadoVM 7.3—a major update to the open-source heterogeneous computing framework that automatically translates and optimizes Java code for accelerators.
How It Works#
TornadoVM compiles Java programs to run on multi-core CPUs and GPUs without requiring a replacement JVM. Instead, it runs alongside standard Java distributions (OpenJDK, GraalVM, Temurin, Zulu) and offloads compute-intensive sections to hardware backends while managing memory transfers between the heap and accelerators. The framework targets data-parallel workloads—such as independent loop iterations—where acceleration yields the most benefit.
The workflow supports a "write once, run anywhere" model: developers can prototype locally using available hardware (like an Apple GPU on a laptop), then deploy the same code to cloud instances with Nvidia GPUs for production speedups.
Version 7's Architectural Overhaul#
The new release removes several layers of complexity. TornadoVM now uses the Foreign Function & Memory (FFM) API instead of the older Java Native Interface (JNI), and has dropped its experimental JVMCI dependency. Compiler metadata now flows through "a reflection + ASM + Unsafe layer," providing unified compatibility across Java versions 21, 25, 26, and 27.
Tighter GPU Library Integration#
Version 7 significantly deepens Nvidia CUDA support through an optimized backend:
- cuTile programming model access via a new TileContext
- Direct calls to CUDA libraries like cuBLAS and CUTLASS from within TornadoVM TaskGraphs
- Ability to mix JIT-compiled kernels with library calls or chain them depending on performance needs
- Multi-GPU execution support
- Equivalent functionality for Apple's Metal Accelerate (MLX) library through a hybrid API
Developers now have four pathways to GPU programming in Java: a simple parallel loop annotation, kernel context API, TileContext, and direct CUDA/library calls.

