News

TornadoVM 8.2 adds an experimental ROCm HIP backend for AMD GPUs

Email

TornadoVM 8.2 can now compile Java GPU workloads for AMD hardware through ROCm’s HIP runtime, instead of making AMD users rely only on the framework’s OpenCL path.[1][2] That gives Java developers a more native route into AMD’s compute stack. It does not make ordinary Java applications, Ollama or another local-LLM runtime faster by itself.

The distinction matters. TornadoVM is a GPU programming framework, not a switch that accelerates an untouched JVM application. Developers describe parallel work through its Loop Parallel, KernelContext or Tornado Compiler APIs, put that work into a TaskGraph, and run it through a TornadoExecutionPlan.[3] Version 8.2’s new backend turns that selected work into HIP C++, then uses hipRTC to compile it at runtime for the installed GPU’s architecture.[2]

Phoronix independently reported the November 24 release and the addition of ROCm HIP beside TornadoVM’s CUDA, OpenCL and Metal targets.[6] There are not yet independent performance results for the HIP backend, so this is a compatibility story rather than a speed story.

What HIP adds

AMD GPUs already appeared in TornadoVM’s OpenCL target list. The HIP backend gives the project a second AMD route, one patterned after its newer CUDA backend and connected to ROCm libraries through Java’s Foreign Function and Memory API.[2][3]

The implementation maps several CUDA-oriented library tasks onto AMD equivalents. The project lists hipBLAS, hipBLASLt, hipFFT, hipRAND, hipSPARSE, MIOpen and RCCL, along with Composable Kernel support for some matrix multiplication and attention work.[2] That is useful for a Java developer building numerical, image-processing or machine-learning kernels who wants to stay inside TornadoVM’s programming model while targeting an AMD card.

It is not an automatic bridge for every Java library. Code still has to use TornadoVM’s APIs, and the tagged README labels HIP support experimental.[3] The release notes also do not announce an Ollama, llama.cpp or general local-LLM integration.[1] For most people who only run packaged inference software, nothing changes today.

What you have to install

The shortest supported route is currently Linux on an x86-64 machine. The 8.2 release provides HIP archives for JDK 21 and a separate jdk22plus line, each in ZIP and tar.gz form. Those are the only prebuilt HIP assets in the release; there is no HIP archive for Windows or Arm Linux.[1]

TornadoVM currently supports JDK 21 through 27 and requires JAVA_HOME to point at the matching JDK. Its quick-start prerequisites also list GCC/G++ 13 or newer and the driver or SDK for the chosen backend.[3] For HIP, the project documents a narrower ROCm route than AMD users may expect: ROCm 10.1 or newer installed from TheRock’s Python packages, with ROCM_PATH set to the directory printed by rocm-sdk path --root.[2][4][5]

AMD’s separate HIP SDK for Windows is explicitly unsupported.[2][4] Native Windows 10 or 11 is documented as a HIP host when it uses the TheRock ROCm packages, but because the release has no Windows HIP binary, Windows users must build from source. The project documents make BACKEND=hip on Linux and an nmake build from a Visual Studio developer prompt on Windows.[2][4][5]

After installation, tornado --devices is the basic check that the runtime can see the accelerator.[1][2] A GPU appearing in that list is only the start; an actual task graph and the relevant project tests are still needed before trusting results.

The compatibility list is shorter than “AMD GPUs”

The implementation record reports Linux testing on an Instinct MI355X and a Radeon AI PRO R9700, plus native Windows 11 testing on a Radeon 8060S. It also records architecture-specific checks for another gfx1250 target.[2] Those tests show that the backend is real and runs across both Instinct and Radeon families, but they are not a compatibility promise for every ROCm-capable card.

The test table itself is candid. More than 700 cases were marked unsupported in each quick-pass run, and two graphics tests failed on each named GPU because of fused multiply-add behavior that also affected OpenCL in the developers’ comparison.[2] The project says both pass when FMA is disabled. That is useful engineering evidence, not a clean bill of health for every workload.

Several gaps remain. CUDA Tile and device-side kernel launches are unsupported on HIP. Multi-GPU RCCL was not tested. On Windows, RCCL has no build, and the hipDF and hipVS projects needed for cuDF and cuVS tasks are also unavailable.[2] AMD’s 64-lane wavefronts can introduce synchronization behavior that differs from Nvidia’s 32-lane warps, so the compiler rejects one provably unsafe local-memory wait pattern while other data-dependent waits may still hang.[2]

Who should try it

TornadoVM 8.2’s HIP backend is worth testing if you already write accelerated Java with TornadoVM, have one of the documented AMD configurations, and want ROCm library access without moving the application into C++ or Python. Start with the matching Linux archive, the specified TheRock ROCm packages and a small task whose result you can verify on the CPU.

Everyone else can wait. Home-AI users running packaged model servers will not gain tokens per second merely by installing this release, and Java developers with an unlisted Radeon should treat support as an experiment rather than an assumption. A broader hardware matrix and independent benchmarks would turn this from an interesting new path into a dependable recommendation.

Sources

  1. TornadoVM 8.2.0 release
  2. TornadoVM PR #1327: Add a HIP backend for AMD GPUs
  3. TornadoVM 8.2.0 README
  4. TornadoVM 8.2.0 installation from source
  5. TornadoVM 8.2.0 developer guidelines
  6. Phoronix: TornadoVM 8.2 released with ROCm HIP backend

Share this article

Email