Package com.aparapi.device
Class Device
- java.lang.Object
-
- com.aparapi.device.Device
-
- All Implemented Interfaces:
java.lang.Comparable<Device>
- Direct Known Subclasses:
JavaDevice,OpenCLDevice
public abstract class Device extends java.lang.Object implements java.lang.Comparable<Device>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevice.TYPE
-
Field Summary
Fields Modifier and Type Field Description protected intmaxWorkGroupSizeprotected intmaxWorkItemDimensionsprotected int[]maxWorkItemSizeprotected Device.TYPEtype
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Devicebest()Deprecated.static DevicebestACC()Deprecated.static DevicebestGPU()Deprecated.intcompareTo(Device other)RangecreateRange(int _globalWidth)RangecreateRange(int _globalWidth, int _localWidth)RangecreateRange2D(int _globalWidth, int _globalHeight)RangecreateRange2D(int _globalWidth, int _globalHeight, int _localWidth, int _localHeight)RangecreateRange3D(int _globalWidth, int _globalHeight, int _globalDepth)RangecreateRange3D(int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth)booleanequals(java.lang.Object o)static Devicefirst(Device.TYPE _type)Deprecated.static DevicefirstCPU()Deprecated.static DevicefirstGPU()Deprecated.abstract longgetDeviceId()intgetMaxWorkGroupSize()intgetMaxWorkItemDimensions()int[]getMaxWorkItemSize()abstract java.lang.StringgetShortDescription()Device.TYPEgetType()inthashCode()voidsetMaxWorkGroupSize(int _maxWorkGroupSize)voidsetMaxWorkItemDimensions(int _maxWorkItemDimensions)voidsetMaxWorkItemSize(int[] maxWorkItemSize)voidsetType(Device.TYPE type)
-
-
-
Field Detail
-
type
protected Device.TYPE type
-
maxWorkGroupSize
protected int maxWorkGroupSize
-
maxWorkItemDimensions
protected int maxWorkItemDimensions
-
maxWorkItemSize
protected int[] maxWorkItemSize
-
-
Method Detail
-
best
@Deprecated public static Device best()
Deprecated.- See Also:
com.aparapi.device
-
bestGPU
@Deprecated public static Device bestGPU()
Deprecated.- See Also:
com.aparapi.device
-
first
@Deprecated public static Device first(Device.TYPE _type)
Deprecated.- See Also:
com.aparapi.device
-
firstGPU
@Deprecated public static Device firstGPU()
Deprecated.- See Also:
com.aparapi.device
-
firstCPU
@Deprecated public static Device firstCPU()
Deprecated.- See Also:
com.aparapi.device
-
bestACC
@Deprecated public static Device bestACC()
Deprecated.- See Also:
com.aparapi.device
-
getShortDescription
public abstract java.lang.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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-