Module tornado.api

Class DataRange

java.lang.Object
uk.ac.manchester.tornado.api.DataRange

public class DataRange extends Object
Data Range Class provides a set of utilities to perform partial copies between the accelerator (e.g., a GPU) and the CPU.
Since:
v1.0.1
  • Constructor Details

  • Method Details

    • withOffset

      public DataRange withOffset(long offset)
    • withSize

      public DataRange withSize(long size)
    • getOffset

      public long getOffset()
    • getPartialSize

      public long getPartialSize()
    • materialize

      public void materialize()
      Compute offset and size based on the information we have.
    • getArray

      public TornadoNativeArray getArray()