Skip to content

Asynchrounous loading of data #501

Answered by stratika
andrii0lomakin asked this question in Q&A
Discussion options

You must be logged in to vote

hi @andrii0lomakin, that's an excellent question. It is quite complex the scenario that you describe, I will try to clarify what is currently supported by the TornadoVM API.

I think it is important to clarify that the point where everything is triggered is the executionPlan.execute() method. This method will trigger the data transfers that have been defined in the TaskGraphs that have been passed to the executionPlan, and it will trigger the compilation during the first time that will be invoked, as well as the execution of the kernel on the GPU. The second time that your class will execute this method, it will copy new data of the inputs (if your transferToDevice is configured with that D…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrii0lomakin
Comment options

Answer selected by andrii0lomakin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants