Eclipse and GraalVM: "The VM does not support the Graal API"
Juan Jose Fumero
juan.fumero at ed.ac.uk
Wed Aug 6 17:39:12 UTC 2014
If I upgrade to the lastest version I get the same error, but in the
terminal.
java.lang.UnsupportedOperationException: The VM does not support the
Graal API.
Currently used Java home directory
is /tmp/graalWed-Aug--6/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)
at
com.edinburgh.parallel.opencl.functional.MapToGraal.getCompiledLambda(MapToGraal.java:96)
at
com.edinburgh.parallel.opencl.functional.MapToGraal.createKernel(MapToGraal.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
com.edinburgh.parallel.functional.ComposablePatternMap.patternApplyOcl(ComposablePatternMap.java:309)
What could it be?
Juanjo
On Wed, 2014-08-06 at 10:20 -0700, Mick Jordan wrote:
> On 8/6/14, 10:15 AM, Juan Jose Fumero wrote:
> > 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?
> Upgrade to the latest rev (at a minimum) rev 74123ce7599b
>
> Mick
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://mail.openjdk.java.net/pipermail/sumatra-dev/attachments/20140806/a0e07215/attachment.ksh>
More information about the sumatra-dev
mailing list