-
Hi, I'm struggling with how to configure TaskGraph for this to work properly. In the first execution everything works fine, the problem is with the next ones. I already tries to replace parameters before executing but it did not fix the problem.
The parameter results and updatedMark will be modified during the execution. When I inspect this two parameters they are correct, the values are as expect after "morpheus.execute();". Then I update mark, and replace the parameters end execute again, but nothing happens. Can you hepl me please? Could it be because I have this?
The "if" is messing this? Thank you for your help with this, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 20 replies
-
Hi @MLobatoR, the use of the In a nutshell, the TaskGraph should be converted to an And then an Finally, you can execute: |
Beta Was this translation helpful? Give feedback.
-
I don't understand what is the function that replaces "replaceParameter" of TaskGraph.
This was running multiple times and every time it was running I was doing this and it was working fine:
But now the results are not being updated and I think is because I'm not replacing old parameters with the new ones. Thank you, |
Beta Was this translation helpful? Give feedback.
-
Hi @jjfumero, Followinh your suggestion I updated my code. Now I get this warning when transfer data to host: The object I'm trying to transfer is int[][], nothing special, in my opinion. Because I'm ignoring this warning when I execute I have an error.
My question is what are the objects you support on transfer to host. The examples I saw where float[]. What can I do here? Thank you in advance for your help, |
Beta Was this translation helpful? Give feedback.
The
replaceParameters
method within the TaskSchedule was removed in version 0.15. We do not need this call because we can use multiple task-graphs and move data across them. I think you should create multiple task-graphs (as many as you need) and multiple execution plans. And move data around as we point out in the examples.If this approach does not fit your needs, feel free to create a simple test-case, and send us a proposal with the feature/s you would like to add in TornadoVM. It is important to understand why your use case could not use multiple execution plans instead, and how we could approach your patterns/examples. The way to open proposals is via GitHub discussions.