Module tornado.api

Class DataTransferMode

java.lang.Object
uk.ac.manchester.tornado.api.enums.DataTransferMode

public class DataTransferMode extends Object
Enumerate to specify the mode in which data will be copied to/from the host to/from the device.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Flag to copy data between host invalid input: '<'-> device every time the execute method of a task-graph (TaskGraph) is invoked.
    static final int
    Flag to copy data between host invalid input: '<'-> device only during the first execution.
    static final int
    Flag to indicate that copy out of buffers (device -> host) are handled by the programmer rather than the TornadoVM runtime system.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FIRST_EXECUTION

      public static final int FIRST_EXECUTION
      Flag 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_EXECUTION
      Flag 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_DEMAND
      Flag 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 invoking TornadoExecutionResult.transferToHost(Object...) method.
      See Also:
  • Constructor Details

    • DataTransferMode

      public DataTransferMode()