java.lang.Object
uk.ac.manchester.tornado.api.TornadoExecutionResult
Object created when the
TornadoExecutionPlan.execute() is finished.
This objects stores the results of the execution. Additionally, if the
execution plan enabled the profiler information, this object also stores all
profiler information (e.g., read/write time, kernel time, etc.) through the
TornadoProfilerResult object.- Since:
- 0.15.0
-
Method Summary
Modifier and TypeMethodDescriptionMethod to obtain the profiler information associated to the latest execution plan.booleanisReady()It returns true if all task-graphs associated to the executor finished execution.transferToHost(Object... objects) Transfer data from device to host.transferToHost(DataRange dataRange) Partial data transfer from the device to the host.
-
Method Details
-
getProfilerResult
Method to obtain the profiler information associated to the latest execution plan. Note that, all timers associated to the profiler are enabled only if the execution plan enables the profiler.- Returns:
TornadoProfilerResult- Since:
- 0.15.0
-
transferToHost
Transfer data from device to host. This is applied for all immutable task-graphs within an executor. This method is used when a task-graph defines transferToHost using theDataTransferMode.UNDER_DEMAND. This indicates the runtime to not to copy-out the data en every iteration and transfer the data under demand.- Parameters:
objects- Host objects to transfer the data to.- Returns:
TornadoExecutionResult- Since:
- 0.15.0
-
transferToHost
Partial data transfer from the device to the host. This is applied for all immutable task-graphs within an executor. This indicates the runtime to not to copy-out the data en every iteration and transfer the data under demand. The sub-region to be copied is specified in the data range.- Parameters:
dataRange- Range of type:DataRange- Returns:
TornadoExecutionResult- Since:
- v1.0.1
-
isReady
public boolean isReady()It returns true if all task-graphs associated to the executor finished execution.- Returns:
- boolean
- Since:
- 0.15.0
-