...
- add okra/dist/bin (from the simulator build above) to $PATH and to $LD_LIBRARY_PATH
- download the patch from the hsail backend webrev to graal which is under review http://cr.openjdk.java.net/~twisti/GRAAL-342/webrev/graal-hsail.patch
- hg clone http://hg.openjdk.java.net/graal/graal
- cd graal (or whatever you named the clone you just made before)
- hg update -r a11e3d681eb1 (the version of the graal trunk that the HSAIL backend patch was derived from)
- apply the patch
- Build graal using the command "mx --vm server build product".
- The following command runs a single junit test (the one that is described in Vasanth's HSAIL compiler blog). The command should be run on a single line, it has line breaks here for readability:
- mx --vm server unittest @-G:-RemoveNeverExecutedCode --J
@-Dsun.boot.library.path=$LD_LIBRARY_PATH
@-Xms1g @-Xmx1g @XX:-UseCompressedOops
hsail.test.IntSquaredTest- The -RemoveNeverExecutedCode directive is there because the current HSAIL backend cannot handle the deoptimization that would be required when a previously never executed path is then taken.
- The -UseCompressedOops is there because the support for compressed Oops in the HSAIL backend is still in progress.
- By removing the specifier IntSquaredTest from the above command line, you can run all the junit tests in the hsail.test directory.
...
{"serverDuration": 167, "requestCorrelationId": "915e1b6e2bc09ef7"}