Eclipse and GraalVM: "The VM does not support the Graal API"
Juan Jose Fumero
juan.fumero at ed.ac.uk
Wed Aug 6 17:15:43 UTC 2014
Hi everybody,
I am working with my OpenCL branch and this version of graal [1].
If I execute my programs from the command line:
$ ./mx.sh vm \
-Xmx6g \
-Xbootclasspath/p:graal.jar \
-XX:-BootstrapGraal \
-cp @com.edinburgh.parallel.functional \
com.edinburgh.parallel.functional.benchmarks.Saxpy
Everything works, but I execute the program in Eclipse, I get the
following error. The same error with UnitTest.
java.lang.UnsupportedOperationException: The VM does not support the
Graal API.
Currently used Java home directory
is /home/juanjo/phd/graaljdk8ocl/jdk1.8.0_11/product/jre.
Currently used VM configuration is: OpenJDK 64-Bit Graal VM
at
com.oracle.graal.api.runtime.Graal.getRequiredCapability(Graal.java:61)
at
com.edinburgh.parallel.opencl.functional.MapToGraal.getBackend(MapToGraal.java:48)
The method getBackend contains the following:
private static Backend getBackend() {
Backend hostBackend =
Graal.getRequiredCapability(RuntimeProvider.class).getHostBackend();
return hostBackend;
}
Any idea?
Many thanks
Juanjo
[1] http://hg.openjdk.java.net/graal/graal/rev/e342886ed437
--
PhD Student
University of Edinburgh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://mail.openjdk.java.net/pipermail/graal-dev/attachments/20140806/8b6f6ed4/attachment.ksh>
More information about the graal-dev
mailing list