Running unit tests from eclipse on Windows
See original GitHub issueHi
I’am trying to run the TestArrays test provided in your code repo from Eclipse, on Windows.
First I installed everything with opencl and ptx drivers and the benchmarks are running nicely in MINGW64. Then I created simple maven project with tornado dependencies (0.14), and just copied the test Array tests locally (with required TornadoTestBase and few other Exception classes). It compiles fine.
Then I exported the Java flags using tornado --printFlags command and added in the Eclipse launcher.
So it looks like
-ea -server -XX:-UseCompressedOops -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Djava.library.path=c:\Users\Greg\Gaia\TornadoVM\bin\sdk\lib --module-path c:\Users\Greg\Gaia\TornadoVM\bin\sdk\share\java\tornado -Dtornado.load.api.implementation=uk.ac.manchester.tornado.runtime.tasks.TornadoTaskSchedule -Dtornado.load.runtime.implementation=uk.ac.manchester.tornado.runtime.TornadoCoreRuntime -Dtornado.load.tornado.implementation=uk.ac.manchester.tornado.runtime.common.Tornado -Dtornado.load.device.implementation.opencl=uk.ac.manchester.tornado.drivers.opencl.runtime.OCLDeviceFactory -Dtornado.load.device.implementation.ptx=uk.ac.manchester.tornado.drivers.ptx.runtime.PTXDeviceFactory -Dtornado.load.device.implementation.spirv=uk.ac.manchester.tornado.drivers.spirv.runtime.SPIRVDeviceFactory -Dtornado.load.annotation.implementation=uk.ac.manchester.tornado.annotation.ASMClassVisitor -Dtornado.load.annotation.parallel=uk.ac.manchester.tornado.api.annotations.Parallel -XX:+UseParallelGC @c:\Users\Greg\Gaia\TornadoVM\bin\sdk\etc\exportLists\ptx-exports @c:\Users\Greg\Gaia\TornadoVM\bin\sdk\etc\exportLists\opencl-exports --add-modules ALL-SYSTEM,tornado.runtime,tornado.annotation,tornado.drivers.common,tornado.drivers.ptx,tornado.drivers.opencl
But I have the error
java.lang.IllegalAccessError: class uk.ac.manchester.tornado.runtime.TornadoCoreRuntime (in module tornado.runtime) cannot access class org.graalvm.compiler.options.OptionValues (in module jdk.internal.vm.compiler) because module jdk.internal.vm.compiler does not export org.graalvm.compiler.options to module tornado.runtime
Any idea ?
Thanks
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Ok Understood, I’ll see what I can do with MINGW64.
I am going to close this issue. @gjevardat feel free to re-open if you encounter more issues.