okra-with-sim: Could not initialize class com.amd.okra.OkraContext

Deneau, Tom tom.deneau at amd.com
Sun Jun 22 03:18:17 UTC 2014


Jules --

Yes, OkraContext, OkraKernel, and OkraUtil are put into graal.jar so it is not necessary to have okra.jar on the classpath.  okra-1.9 came out on Apr 23 and there have been no changes since then.  What are the symptoms of your problem?

-- Tom

-----Original Message-----
From: graal-dev [mailto:graal-dev-bounces at openjdk.java.net] On Behalf Of Jules Gosnell
Sent: Saturday, June 21, 2014 2:56 AM
To: graal-dev at openjdk.java.net
Subject: okra-with-sim: Could not initialize class com.amd.okra.OkraContext

Guys,

Between 17th/18th June, it looks like something changed which has broken the initialisation of the okra-with-sim build of my project Clumatra.

I went to investigate and found that the okra-with-sim jar does not contain OkraContext - it is only in the okra jar. I am sure that my build only had the sim jar on its classpath... so I guess I must have been finding it in JDK/jre/lib/graal.jar

I am using http://cr.openjdk.java.net/~tdeneau/okra-1.9-with-sim.jar

I've tried rolling back to 1.8, but that seems to make any difference - besides it would no longer match with the okra version inside my jdk,

I've had a look at the history of graal/mx/projects to see if e.g. the okra version changed on this date - but no dice.

Nothing seems to have changed at
https://github.com/HSAFoundation/Okra-Interface-to-HSAIL-Simulator or https://github.com/HSAFoundation/Okra-Interface-to-HSA-Device

If I have time this evening I will sit down and try debugging it - I think something is going wrong in the loading/initialisation of the simulator's native lib.

Maybe I could try rolling back the date on a jdk/graal src tree and see if that fixes it...

Any hints as to what might have changed would be much appreciated.


Jules


More information about the graal-dev mailing list