Open andrii0lomakin opened 1 month ago
hi @andrii0lomakin, thanks for the report. To understand better, did you try something similar to this?
TaskGraphgraph = new TaskGraph("s0");
graph.transferToDevice(DataTransferMode.FIRST_EXECUTION, input)
.transferToHost(DataTransferMode.EVERY_EXECUTION, output);
ImmutableTaskGraph immutableTaskGraph = graph.snapshot();
TornadoExecutionPlan executionPlan = new TornadoExecutionPlan(immutableTaskGraph);
executionPlan.execute();
How did you enable the assertions? And what is the exact error message you got?
@stratika
I have used -ea -da:org.graalvm.compiler...
You can find the reproducer there: https://github.com/babylonml/tornadovm-bugs/blob/main/src/test/kotlin/com/babylonml/EmptyTaskGraph.kt . To run the test, please specify the TornadoVM SDK location using the babylonml.tornadovm.home
property.
Good day. I mistakenly created two task graphs and registered objects to transfer in one graph but tasks in the other one. Then I executed a graph with 0 amount of tasks and registered transfer objects. As a result, I got a cryptic assertion error (only because assertions were enabled).
That does not allow for identifying such issues correctly.