Class Device
java.lang.Object
com.aparapi.device.Device
- All Implemented Interfaces:
Comparable<Device>
- Direct Known Subclasses:
JavaDevice, OpenCLDevice
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected int[]protected Device.TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Devicebest()Deprecated.static DevicebestACC()Deprecated.static DevicebestGPU()Deprecated.intcreateRange(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) booleanstatic Devicefirst(Device.TYPE _type) Deprecated.static DevicefirstCPU()Deprecated.static DevicefirstGPU()Deprecated.abstract longintintint[]abstract StringgetType()inthashCode()voidsetMaxWorkGroupSize(int _maxWorkGroupSize) voidsetMaxWorkItemDimensions(int _maxWorkItemDimensions) voidsetMaxWorkItemSize(int[] maxWorkItemSize) voidsetType(Device.TYPE type)
-
Field Details
-
type
-
maxWorkGroupSize
protected int maxWorkGroupSize -
maxWorkItemDimensions
protected int maxWorkItemDimensions -
maxWorkItemSize
protected int[] maxWorkItemSize
-
-
Constructor Details
-
Device
public Device()
-
-
Method Details
-
best
-
bestGPU
-
first
-
firstGPU
-
firstCPU
-
bestACC
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<Device>
-
KernelManager.bestDevice()