Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 'linux-x86_64-normal-server-release'

## Starting langtools
## Finished langtools (build time 00:00:03)

## Starting hotspot
## Finished hotspot (build time 00:00:01)

## Starting corba
## Finished corba (build time 00:00:00)

## Starting jaxp
##...