Module tornado.api

Interface WorkerGrid

All Known Implementing Classes:
AbstractWorkerGrid, WorkerGrid1D, WorkerGrid2D, WorkerGrid3D

public interface WorkerGrid
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of parallel dimensions.
    long[]
    Returns an array of 3 elements with the offset per dimension.
    long[]
    Returns an array of 3 elements with the total number of threads per dimension.
    long[]
    Returns an array of 3 elements with the total number of threads per for the local work groups.
    long[]
    Returns an array with the total number of work groups per dimension.
    void
    setGlobalOffset(long x, long y, long z)
    Sets the global offsets per dimension.
    void
    setGlobalWork(long x, long y, long z)
    Sets the total number of threads per dimension to launch on the accelerator.
    void
    setLocalWork(long x, long y, long z)
    Sets the local work group threads per dimension to launch on the accelerator.
    void
    Sets the local work group to null.
    void
    Sets the global work group to null.
  • Method Details

    • dimension

      int dimension()
      Returns the number of parallel dimensions. This could be 1D, 2D or 3D.
      Returns:
      int
    • getGlobalWork

      long[] getGlobalWork()
      Returns an array of 3 elements with the total number of threads per dimension.
      Returns:
      invalid reference
      long[]
    • getLocalWork

      long[] getLocalWork()
      Returns an array of 3 elements with the total number of threads per for the local work groups.
      Returns:
      invalid reference
      long[]
    • getNumberOfWorkgroups

      long[] getNumberOfWorkgroups()
      Returns an array with the total number of work groups per dimension.
      Returns:
      invalid reference
      long[]
    • getGlobalOffset

      long[] getGlobalOffset()
      Returns an array of 3 elements with the offset per dimension.
      Returns:
      invalid reference
      long[]
    • setGlobalWork

      void setGlobalWork(long x, long y, long z)
      Sets the total number of threads per dimension to launch on the accelerator.
      Parameters:
      x -
      y -
      z -
    • setLocalWork

      void setLocalWork(long x, long y, long z)
      Sets the local work group threads per dimension to launch on the accelerator.
      Parameters:
      x -
      y -
      z -
    • setNumberOfWorkgroupsToNull

      void setNumberOfWorkgroupsToNull()
      Sets the global work group to null.
    • setLocalWorkToNull

      void setLocalWorkToNull()
      Sets the local work group to null. In this case, the corresponding driver will launch a default number of thread blocks (e.g., OpenCL Runtime).
    • setGlobalOffset

      void setGlobalOffset(long x, long y, long z)
      Sets the global offsets per dimension.
      Parameters:
      x -
      y -
      z -