Skip to content

Instantly share code, notes, and snippets.

@andrii0lomakin
Last active July 2, 2024 05:04
Show Gist options
  • Save andrii0lomakin/d4e8893e46d4ee1a66820cba25e5358f to your computer and use it in GitHub Desktop.
Save andrii0lomakin/d4e8893e46d4ee1a66820cba25e5358f to your computer and use it in GitHub Desktop.
JVM args for TVM
Could not initialize class uk.ac.manchester.tornado.api.runtime.TornadoRuntimeProvider
java.lang.NoClassDefFoundError: Could not initialize class uk.ac.manchester.tornado.api.runtime.TornadoRuntimeProvider
at tornado.runtime@1.0.6/uk.ac.manchester.tornado.runtime.tasks.TornadoTaskGraph.reuseDeviceBufferObject(TornadoTaskGraph.java:1052)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at tornado.runtime@1.0.6/uk.ac.manchester.tornado.runtime.tasks.TornadoTaskGraph.lockObjectsInMemory(TornadoTaskGraph.java:1068)
at tornado.runtime@1.0.6/uk.ac.manchester.tornado.runtime.tasks.TornadoTaskGraph.transferToDevice(TornadoTaskGraph.java:963)
at tornado.api@1.0.6/uk.ac.manchester.tornado.api.TaskGraph.transferToDevice(TaskGraph.java:697)
at com.babylonml.vector.tornadovm.TvmVectorOperationsTests.addVectorToVectorTest(TvmVectorOperationsTests.kt:47)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchMethodError: uk.ac.manchester.tornado.api.exceptions.Debug.tprintf(Ljava/lang/String;[Ljava/lang/Object;) [in thread "Test worker"]
at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Checks.checkResolvable(InvocationPlugins.java:1061)
at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.register(InvocationPlugins.java:805)
at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.register(InvocationPlugins.java:813)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.graal.compiler.plugins.OCLGraphBuilderPlugins.registerTornadoVMIntrinsicsPlugins(OCLGraphBuilderPlugins.java:461)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.graal.compiler.plugins.OCLGraphBuilderPlugins.registerInvocationPlugins(OCLGraphBuilderPlugins.java:105)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.graal.OCLHotSpotBackendFactory.createGraphBuilderPlugins(OCLHotSpotBackendFactory.java:145)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.graal.OCLHotSpotBackendFactory.createJITCompiler(OCLHotSpotBackendFactory.java:114)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.OCLBackendImpl.createOCLJITCompiler(OCLBackendImpl.java:207)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.OCLBackendImpl.installDevices(OCLBackendImpl.java:221)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.OCLBackendImpl.lambda$discoverDevices$4(OCLBackendImpl.java:228)
at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
at java.base/java.util.stream.IntPipeline$Head.forEach(IntPipeline.java:617)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.OCLBackendImpl.discoverDevices(OCLBackendImpl.java:226)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.OCLBackendImpl.<init>(OCLBackendImpl.java:78)
at tornado.drivers.opencl@1.0.6/uk.ac.manchester.tornado.drivers.opencl.OCLTornadoDriverProvider.createBackend(OCLTornadoDriverProvider.java:48)
at tornado.runtime@1.0.6/uk.ac.manchester.tornado.runtime.TornadoCoreRuntime.loadBackends(TornadoCoreRuntime.java:163)
at tornado.runtime@1.0.6/uk.ac.manchester.tornado.runtime.TornadoCoreRuntime.<init>(TornadoCoreRuntime.java:103)
at tornado.runtime@1.0.6/uk.ac.manchester.tornado.runtime.TornadoCoreRuntime.<clinit>(TornadoCoreRuntime.java:77)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:421)
at java.base/java.lang.Class.forName(Class.java:412)
at tornado.api@1.0.6/uk.ac.manchester.tornado.api.runtime.TornadoAPIProvider.loadTornadoRuntimeImpl(TornadoAPIProvider.java:48)
at tornado.api@1.0.6/uk.ac.manchester.tornado.api.runtime.TornadoRuntimeProvider.init(TornadoRuntimeProvider.java:34)
at tornado.api@1.0.6/uk.ac.manchester.tornado.api.runtime.TornadoRuntimeProvider.<clinit>(TornadoRuntimeProvider.java:29)
... 39 more
[-server, -XX:-UseCompressedOops, -XX:+UnlockExperimentalVMOptions, -XX:+EnableJVMCI, -XX:-UseCompressedClassPointers, --enable-preview, -XX:+UseParallelGC, -Djava.library.path=C:\Users\lomak\Documents\Development\TornadoVM\dist\tornado-sdk\tornado-sdk-1.0.6-c131935\lib, --module-path, .;C:\Users\lomak\Documents\Development\TornadoVM\dist\tornado-sdk\tornado-sdk-1.0.6-c131935\share\java\tornado, --add-modules, ALL-SYSTEM,tornado.runtime,tornado.annotation,tornado.drivers.common,tornado.drivers.opencl,tornado.drivers.ptx, --upgrade-module-path, C:\Users\lomak\Documents\Development\TornadoVM\dist\tornado-sdk\tornado-sdk-1.0.6-c131935\share\java\graalJars, @C:\Users\lomak\Documents\Development\TornadoVM\dist\tornado-sdk\tornado-sdk-1.0.6-c131935\etc\exportLists\common-exports, @C:\Users\lomak\Documents\Development\TornadoVM\dist\tornado-sdk\tornado-sdk-1.0.6-c131935\etc\exportLists\opencl-exports, @C:\Users\lomak\Documents\Development\TornadoVM\dist\tornado-sdk\tornado-sdk-1.0.6-c131935\etc\exportLists\ptx-exports, -Dtornado.load.api.implementation=uk.ac.manchester.tornado.runtime.tasks.TornadoTaskGraph, -Dtornado.load.runtime.implementation=uk.ac.manchester.tornado.runtime.TornadoCoreRuntime, -Dtornado.load.tornado.implementation=uk.ac.manchester.tornado.runtime.common.Tornado, -Dtornado.load.annotation.implementation=uk.ac.manchester.tornado.annotation.ASMClassVisitor, -Dtornado.load.annotation.parallel=uk.ac.manchester.tornado.api.annotations.Parallel]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment