Package com.aparapi.device
Class Device
java.lang.Object
com.aparapi.device.Device
- All Implemented Interfaces:
Comparable<Device>
- Direct Known Subclasses:
JavaDevice
,OpenCLDevice
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Device
best()
Deprecated.static Device
bestACC()
Deprecated.static Device
bestGPU()
Deprecated.int
createRange
(int _globalWidth) createRange
(int _globalWidth, int _localWidth) createRange2D
(int _globalWidth, int _globalHeight) createRange2D
(int _globalWidth, int _globalHeight, int _localWidth, int _localHeight) createRange3D
(int _globalWidth, int _globalHeight, int _globalDepth) createRange3D
(int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth) boolean
static Device
first
(Device.TYPE _type) Deprecated.static Device
firstCPU()
Deprecated.static Device
firstGPU()
Deprecated.abstract long
int
int
int[]
abstract String
getType()
int
hashCode()
void
setMaxWorkGroupSize
(int _maxWorkGroupSize) void
setMaxWorkItemDimensions
(int _maxWorkItemDimensions) void
setMaxWorkItemSize
(int[] maxWorkItemSize) void
setType
(Device.TYPE type)
-
Constructor Details
-
Device
public Device()
-
-
Method Details
-
best
Deprecated.- See Also:
-
bestGPU
Deprecated.- See Also:
-
first
Deprecated.- See Also:
-
firstGPU
Deprecated.- See Also:
-
firstCPU
Deprecated.- See Also:
-
bestACC
Deprecated.- See Also:
-
getShortDescription
-
getType
-
setType
-
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
-
createRange
-
createRange2D
-
createRange2D
-
createRange3D
-
createRange3D
public Range createRange3D(int _globalWidth, int _globalHeight, int _globalDepth, int _localWidth, int _localHeight, int _localDepth) -
getDeviceId
public abstract long getDeviceId() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Device>
-
KernelManager.bestDevice()