webrev for running HSAIL same way as PTX from Hotspot

Caspole, Eric Eric.Caspole at amd.com
Wed Nov 6 14:11:34 PST 2013


Hi everyone,
I put a new graal hotspot webrev at

 http://cr.openjdk.java.net/~ecaspole/jvm_kernel_launch.01/webrev/

Here I made changes to support running HSAIL kernels using the same code path as PTX in Hotspot. I tried to have the same code structure as PTX except that HSAIL arguments are processed differently because HSA has direct access to the java heap.

I did not do anything with the gpu detection code. I added a -XX:+UseHSAILSimulator option for the time being to use this path rather than the PTX path. These changes will work with the HSA simulator Okra library at

 https://github.com/HSAFoundation/Okra-Interface-to-HSAIL-Simulator

We are adding new support in that library to work with these hotspot changes. Then you can build the Okra library, put it in the LD_LIBRARY_PATH for the Graal JVM and run HSAIL kernels.

I think there is a little work to do to more smoothly support the two different offload platforms but this is a start to integrate it.
Thanks,
Eric



More information about the graal-dev mailing list