Device.DeviceType
Constructor and Description |
---|
JoclDevice(com.jogamp.opencl.CLDevice device,
JoclPlatform platform) |
Modifier and Type | Method and Description |
---|---|
int |
getAddressBits()
Returns the default compute device address space
size specified as an unsigned integer value
in bits.
|
int |
getClockFrequency() |
java.lang.String |
getCompilerVersion()
OpenCL C version string.
|
int |
getCompilerVersionMajor()
Extracts the major version from the compiler version
|
int |
getCompilerVersionMinor()
Extracts the minor version from the compiler version
|
int |
getComputeUnits()
Returns the number of parallel compute units on
the OpenCL device.
|
com.jogamp.opencl.CLDevice |
getDevice() |
Device.DeviceType |
getDeviceType() |
java.lang.String |
getDriverVersion() |
int |
getDriverVersionMajor()
Extracts the major version from the driver version
|
int |
getDriverVersionMinor()
Extracts the minor version from the driver version
|
java.util.Collection<? extends java.lang.String> |
getExtensions()
Lists all available extensions
|
long |
getGlobalMemorySize() |
long |
getId() |
long |
getLocalMemorySize() |
long |
getMaximumAllocationSize() |
int |
getMaximumConstantArguments() |
long |
getMaximumConstantBufferSize()
Returns the maximal size of a constant buffer.
|
long[] |
getMaximumImage2DSize()
Queries the maximal size of a 2D image
|
long[] |
getMaximumImage3DSize()
Queries the maximal size of a 3D image
|
int |
getMaximumReadImages() |
int |
getMaximumSamplers() |
long |
getMaximumWorkItemDimensions()
The maximum dimension that specify the local and global work item ids.
|
long[] |
getMaximumWorkItemSizes()
Maximum number of work-items that can be specified in each dimension of the
work-group to
Kernel.Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...) . |
int |
getMaximumWriteImages() |
long |
getMaxiumWorkItemsPerGroup()
Maximum number of work-items in a
work-group executing a kernel on a single
compute unit, using the data parallel
execution model.
|
java.lang.String |
getName() |
JoclPlatform |
getPlatform() |
java.lang.String |
getProfile()
OpenCL profile string.
|
java.lang.String |
getVendor() |
int |
getVendorId() |
java.lang.String |
getVersion()
OpenCL version string.
|
int |
getVersionMajor()
Extracts the major version from the version string
|
int |
getVersionMinor()
Extracts the minor version from the version string
|
boolean |
hasCompiler() |
boolean |
hasDouble() |
boolean |
hasErrorCorrectingMemory() |
boolean |
hasExtension(java.lang.String extension)
Explictly tests for the availability of the specified extension
|
boolean |
hasHalfFloat() |
boolean |
hasImageSupport() |
boolean |
hasOpenGLInterop() |
boolean |
hasUnifiedMemory() |
boolean |
hasWritableImage3D() |
boolean |
isAvailable()
checks if this device is available at all, must always be tested
|
boolean |
isLittleEndian() |
java.lang.String |
toString() |
public JoclDevice(com.jogamp.opencl.CLDevice device, JoclPlatform platform)
public long getId()
public com.jogamp.opencl.CLDevice getDevice()
public JoclPlatform getPlatform()
getPlatform
in interface Device
public Device.DeviceType getDeviceType()
getDeviceType
in interface Device
public int getVendorId()
getVendorId
in interface Device
public boolean isAvailable()
Device
isAvailable
in interface Device
public boolean hasCompiler()
hasCompiler
in interface Device
public boolean hasDouble()
public boolean hasHalfFloat()
hasHalfFloat
in interface Device
public boolean hasErrorCorrectingMemory()
hasErrorCorrectingMemory
in interface Device
public boolean hasUnifiedMemory()
hasUnifiedMemory
in interface Device
public boolean hasImageSupport()
hasImageSupport
in interface Device
public boolean hasWritableImage3D()
hasWritableImage3D
in interface Device
public boolean hasOpenGLInterop()
hasOpenGLInterop
in interface Device
public boolean hasExtension(java.lang.String extension)
Device
hasExtension
in interface Device
extension
- the name of the extensiontrue
iff this extension is supportedpublic java.util.Collection<? extends java.lang.String> getExtensions()
Device
getExtensions
in interface Device
public int getComputeUnits()
Device
getComputeUnits
in interface Device
Device.getMaximumWorkItemDimensions()
,
Device.getMaximumWorkItemSizes()
public int getClockFrequency()
getClockFrequency
in interface Device
public int getAddressBits()
Device
getAddressBits
in interface Device
public boolean isLittleEndian()
isLittleEndian
in interface Device
true
if this device is little endianpublic long getMaximumWorkItemDimensions()
Device
getMaximumWorkItemDimensions
in interface Device
public long[] getMaximumWorkItemSizes()
Device
Kernel.Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...)
.
The array has a length of at least 3.getMaximumWorkItemSizes
in interface Device
public long getMaxiumWorkItemsPerGroup()
Device
getMaxiumWorkItemsPerGroup
in interface Device
public int getMaximumSamplers()
getMaximumSamplers
in interface Device
public int getMaximumReadImages()
getMaximumReadImages
in interface Device
public int getMaximumWriteImages()
getMaximumWriteImages
in interface Device
public long[] getMaximumImage2DSize()
Device
getMaximumImage2DSize
in interface Device
public long[] getMaximumImage3DSize()
Device
getMaximumImage3DSize
in interface Device
public long getMaximumAllocationSize()
getMaximumAllocationSize
in interface Device
public long getGlobalMemorySize()
getGlobalMemorySize
in interface Device
public long getLocalMemorySize()
getLocalMemorySize
in interface Device
public long getMaximumConstantBufferSize()
Device
__constant BUFFER_TYPE* BUFFER_NAME
.
Because they have a special caching, their size is usually very limited.getMaximumConstantBufferSize
in interface Device
public int getMaximumConstantArguments()
getMaximumConstantArguments
in interface Device
public java.lang.String getProfile()
Device
getProfile
in interface Device
public java.lang.String getVersion()
Device
getVersion
in interface Device
public int getVersionMajor()
Device
getVersionMajor
in interface Device
Device.getVersion()
public int getVersionMinor()
Device
getVersionMinor
in interface Device
}
public java.lang.String getCompilerVersion()
Device
getCompilerVersion
in interface Device
public int getCompilerVersionMajor()
Device
getCompilerVersionMajor
in interface Device
Device.getCompilerVersion()
public int getCompilerVersionMinor()
Device
getCompilerVersionMinor
in interface Device
Device.getCompilerVersion()
public java.lang.String getDriverVersion()
getDriverVersion
in interface Device
public int getDriverVersionMajor()
Device
getDriverVersionMajor
in interface Device
Device.getDriverVersion()
public int getDriverVersionMinor()
Device
getDriverVersionMinor
in interface Device
Device.getDriverVersion()
public java.lang.String getName()
public java.lang.String getVendor()
public java.lang.String toString()
toString
in class java.lang.Object