PTX backend development status

Bharadwaj Yadavalli bharadwaj.yadavalli at oracle.com
Thu Oct 24 12:55:49 PDT 2013


A PTX backend that generates code for simple Java methods is taking 
shape in the graal sources (|hg clone 
http:|//hg.openjdk.java.net/graal/graal).
|
htps://wiki.openjdk.java.net/display/Graal/Main provides necessary 
information about building and running graal.

Current implementation can generate and execute PTX code on CUDA capable 
hardware (if one exists) for simple Java methods. Primitive type Java 
method argument passing and capture of return value work. Object type 
argument passing still needs work.

There are a few PTX tests in 
raal/com.oracle.graal.compiler.ptx.test/src/com/oracle/graal/compiler/ptx/test 
that can be run.

The generated PTX code can printed to stdout by passing the commandline 
option -XX:+TraceGPUInteraction to ./mx.sh

An initial goal is to be able to recognize Java constructs suitable for 
GPU execution at runtime.

Looking forward to all PTX experts to contribute in enhancing this 
OpenJDK project.

Thanks,

Bharadwaj

|


More information about the sumatra-dev mailing list