Building OpenJDK 9 with Sumatra

For a long time, Java was considered as a primarily backend tool, due to its cross-platform vectoring. Only J2ME was capable of achieving long-term superiority in the mobile segment. But now it's going to change. Project Sumatra has the aim of delivering GPU-calculation standards to the Java guys.

Getting ready

You will probably need a GPU that supports CUDA and OpenGL, or a HSAIL simulator running (because on-board GPUs do not support native GPU languages).

How to do it...

Sumatra developers are making wide use of the Graal project, described earlier. The build consists of two stages. Firstly, the Sumatra JDK is built, like a normal OpenJDK build, as shown:

make
Building OpenJDK for target 'default' in configuration ...

Get OpenJDK Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.