AMD Sumatra demo JDK
Frost, Gary
Gary.Frost at amd.com
Tue May 14 09:14:11 PDT 2013
Brian and Morris
Thanks for the feedback.
As Eric mentioned we had previously proved out a few 'paths' of execution using a highly customized Aparapi engine and OpenCL.
We are now pivoting to Graal and have replicated most of our early test cases using GraaL generated HSAIL (HSA Intermediate Language).
Actually Eric recently demonstrated basic lambda support, meaning we executed Graal generated HSAIL for a simple 'forEach(IntConsumer)' style dispatch on our HSA simulator/emulator.
Once the HSAIL spec has been ratified by the HSA foundation (real soon now) we plan on submitting our Graal patches (HSAIL backend to Graal) along with our test infrastructure and examples so that others can replicate our work.
Then I think some real conversations can take place concerning supporting multiple device types and the issue of triggering Graal code generation for compatible lambdas, and how to build a GPU/APU/Accelerator/GRID style dispatch mechanism which dovetails into the current compiler/method dispatch infrastructure. My guess is that Morris is probably also looking at some of these for PTX dispatch. We should share notes here.
We concur that Graal is turning out to be a great vehicle for enabling GPU/accelerator devices. Initially we were scoping out the work to add this to C1/C2 and were very pleased to find that Graal simplified our lives ;)
Gary
-----Original Message-----
From: sumatra-dev-bounces at openjdk.java.net [mailto:sumatra-dev-bounces at openjdk.java.net] On Behalf Of Morris Meyer
Sent: Tuesday, May 14, 2013 10:09 AM
To: sumatra-dev at openjdk.java.net
Subject: AMD Sumatra demo JDK
Eric,
I'd like to echo Brian - this is good progress.
Christian Thalinger and myself have been working with Graal (and posting on graal-dev). Christian has been putting in JSR-292 changes, and I have put in a lightweight Cuda linkage along with PTX Graal changes. I have Graal-PTX to the point where it is compiling very simple Cuda kernels successfully.
With regard to running heterogeneous methods via Graal, I am working on
JDK-8013168 to extend Method to support multiple architectures.
Looking forward to seeing GRAAL-HSA in basic-graal as we've been following Vasanth's postings on graal-dev.
With respect to adding Graal into the JDK as a second compiler, both Christian and myself use basic-graal and some makefile mods to work with Eclipse to run Graal classes through a hosted environment.
With respect to Graal being a necessary component - Christian and John Rose can add in here - my understanding has been that Graal might be our quickest route to a fully-capable compiler on additional GPU architectures in the HotSpot environment. After working a while on the PTX architecture in the Graal environment I'm sold.
With respect to storing kernels, nothing yet.
--morris
More information about the sumatra-dev
mailing list