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 class
Device.TYPE
-
Field Summary
Fields Modifier and Type Field Description protected int
maxWorkGroupSize
protected int
maxWorkItemDimensions
protected int[]
maxWorkItemSize
protected Device.TYPE
type
-
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 Device
best()
Deprecated.static Device
bestACC()
Deprecated.static Device
bestGPU()
Deprecated.int
compareTo(Device other)
Range
createRange(int _globalWidth)
Range
createRange(int _globalWidth, int _localWidth)
Range
createRange2D(int _globalWidth, int _globalHeight)
Range
createRange2D(int _globalWidth, int _globalHeight, int _localWidth, int _localHeight)
Range
createRange3D(int _globalWidth, int _globalHeight, int _globalDepth)
Range
createRange3D(int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth)
boolean
equals(java.lang.Object o)
static Device
first(Device.TYPE _type)
Deprecated.static Device
firstCPU()
Deprecated.static Device
firstGPU()
Deprecated.abstract long
getDeviceId()
int
getMaxWorkGroupSize()
int
getMaxWorkItemDimensions()
int[]
getMaxWorkItemSize()
abstract java.lang.String
getShortDescription()
Device.TYPE
getType()
int
hashCode()
void
setMaxWorkGroupSize(int _maxWorkGroupSize)
void
setMaxWorkItemDimensions(int _maxWorkItemDimensions)
void
setMaxWorkItemSize(int[] maxWorkItemSize)
void
setType(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-