Class Device

java.lang.Object
com.aparapi.device.Device
All Implemented Interfaces:
Comparable<Device>
Direct Known Subclasses:
JavaDevice, OpenCLDevice

public abstract class Device extends Object implements Comparable<Device>
  • Constructor Details

    • Device

      public Device()
  • Method Details

    • best

      @Deprecated public static Device best()
      See Also:
    • bestGPU

      @Deprecated public static Device bestGPU()
      Deprecated.
      See Also:
    • first

      @Deprecated public static Device first(Device.TYPE _type)
      Deprecated.
      See Also:
    • firstGPU

      @Deprecated public static Device firstGPU()
      Deprecated.
      See Also:
    • firstCPU

      @Deprecated public static Device firstCPU()
      Deprecated.
      See Also:
    • bestACC

      @Deprecated public static Device bestACC()
      Deprecated.
      See Also:
    • getShortDescription

      public abstract String getShortDescription()
    • getType

      public Device.TYPE getType()
    • setType

      public void setType(Device.TYPE type)
    • getMaxWorkItemDimensions

      public int getMaxWorkItemDimensions()
    • setMaxWorkItemDimensions

      public void setMaxWorkItemDimensions(int _maxWorkItemDimensions)
    • getMaxWorkGroupSize

      public int getMaxWorkGroupSize()
    • setMaxWorkGroupSize

      public void setMaxWorkGroupSize(int _maxWorkGroupSize)
    • getMaxWorkItemSize

      public int[] getMaxWorkItemSize()
    • setMaxWorkItemSize

      public void setMaxWorkItemSize(int[] maxWorkItemSize)
    • createRange

      public Range createRange(int _globalWidth)
    • createRange

      public Range createRange(int _globalWidth, int _localWidth)
    • createRange2D

      public Range createRange2D(int _globalWidth, int _globalHeight)
    • createRange2D

      public Range createRange2D(int _globalWidth, int _globalHeight, int _localWidth, int _localHeight)
    • createRange3D

      public Range createRange3D(int _globalWidth, int _globalHeight, int _globalDepth)
    • createRange3D

      public Range createRange3D(int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth)
    • getDeviceId

      public abstract long getDeviceId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Device other)
      Specified by:
      compareTo in interface Comparable<Device>