java.lang.Object
uk.ac.manchester.tornado.api.enums.DataTransferMode
Enumerate to specify the mode in which data will be copied to/from the host
to/from the device.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag to copy data between host invalid input: '<'-> device every time the execute method of a task-graph (TaskGraph) is invoked.static final intFlag to copy data between host invalid input: '<'-> device only during the first execution.static final intFlag to indicate that copy out of buffers (device -> host) are handled by the programmer rather than the TornadoVM runtime system. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FIRST_EXECUTION
public static final int FIRST_EXECUTIONFlag to copy data between host invalid input: '<'-> device only during the first execution. If the task-graph is executed multiple times, all data set with this flag will remain on the device as a Read-Only data.- See Also:
-
EVERY_EXECUTION
public static final int EVERY_EXECUTIONFlag to copy data between host invalid input: '<'-> device every time the execute method of a task-graph (TaskGraph) is invoked.- See Also:
-
UNDER_DEMAND
public static final int UNDER_DEMANDFlag to indicate that copy out of buffers (device -> host) are handled by the programmer rather than the TornadoVM runtime system. If this flag is used, developers must manually transfer the data from the device to the host by invokingTornadoExecutionResult.transferToHost(Object...)method.- See Also:
-
-
Constructor Details
-
DataTransferMode
public DataTransferMode()
-