java.lang.Object
api.Native
au.notzed.zcl.CLObject
au.notzed.zcl.CLExtendable
au.notzed.zcl.CLDevice
public class CLDevice extends CLExtendable
Interface for cl_device_id.
-
Field Summary
Fields inherited from class au.notzed.zcl.CLExtendable
platform
-
Constructor Summary
Constructors Constructor Description CLDevice(jdk.incubator.foreign.MemoryAddress p)
-
Method Summary
Methods inherited from class au.notzed.zcl.CLExtendable
getAPIVersion, getExtension, haveAPIVersion, requireAPIVersion
Methods inherited from class au.notzed.zcl.CLObject
getInfo, getInfo, getInfo, getInfoAny, getInfoAny, getInfoAny, getInfoAny, getInfoAnyV, getInfoByteV, getInfoByteV, getInfoInt, getInfoInt, getInfoInt, getInfoInt, getInfoJava, getInfoLong, getInfoLong, getInfoLong, getInfoLong, getInfoLongV, getInfoLongV, getInfoPropertyV, getInfoSizeT, getInfoSizeT, getInfoSizeT, getInfoSizeTA, getInfoString, getInfoString, getInfoString, getInfoString, release, release
Methods inherited from class api.Native
addr, addr, addr, debugDumpReachable, debugFlushAll, downcallHandle, downcallHandle, dumpSignature, freeUpcallStub, getAddr, getAddr, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, loadLibraries, parseStruct, parseUnion, release, release, release, resolve, setAddr, setAddr, setByte, setByte, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setShort, setShort, toAddrV, toAddrV, toAddrV, toByteV, toByteV, toLongV, toLongV, toObjectV, toObjectV, toString, upcallStub
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CLDevice
public CLDevice(jdk.incubator.foreign.MemoryAddress p)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
initPlatform
Description copied from class:CLExtendable
Retrieve the platform. This should not cache the lookup. It cannot return null by definition. This should not be called by any implementing class.- Specified by:
initPlatform
in classCLExtendable
- Returns:
-
PARTITION_EQUALLY
Create a property representing CL_DEVICE_PARTITION_EQUALLY.- Parameters:
n
- target value.- Returns:
- Since:
- OpenCL 1.2
-
PARTITION_BY_COUNTS
Create a property representing CL_DEVICE_PARTITION_BY_COUNTS.- Parameters:
counts
- Array of counts. Do not include COUNTS_LIST_END.- Returns:
- Since:
- OpenCL 1.2
-
PARTITION_BY_AFFINITY_DOMAIN
Create a property representing CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN.- Parameters:
domain
- target value from CL_DEVICE_AFFINITY_DOMAIN* constants.- Returns:
- Since:
- OpenCL 1.2
-
getType
public long getType()get CL_DEVICE_TYPE- Returns:
- CL_DEVICE_TYPE_*
-
getVendorID
public int getVendorID()get CL_DEVICE_VENDOR_ID- Returns:
- Unique vendor identifier.
-
getMaxComputeUnits
public int getMaxComputeUnits()get CL_DEVICE_MAX_COMPUTE_UNITS- Returns:
- Maximum compute units.
-
getMaxWorkItemDimensions
public int getMaxWorkItemDimensions() -
getMaxWorkItemSizes
public long[] getMaxWorkItemSizes() -
getMaxWorkGroupSize
public long getMaxWorkGroupSize() -
getPreferredVectorWidthChar
public int getPreferredVectorWidthChar() -
getPreferredVectorWidthShort
public int getPreferredVectorWidthShort() -
getPreferredVectorWidthInt
public int getPreferredVectorWidthInt() -
getPreferredVectorWidthLong
public int getPreferredVectorWidthLong() -
getPreferredVectorWidthFloat
public int getPreferredVectorWidthFloat() -
getPreferredVectorWidthDouble
public int getPreferredVectorWidthDouble() -
getPreferredVectorWidthHalf
public int getPreferredVectorWidthHalf() -
getNativeVectorWidthChar
public int getNativeVectorWidthChar() -
getNativeVectorWidthShort
public int getNativeVectorWidthShort() -
getNativeVectorWidthInt
public int getNativeVectorWidthInt() -
getNativeVectorWidthLong
public int getNativeVectorWidthLong() -
getNativeVectorWidthFloat
public int getNativeVectorWidthFloat() -
getNativeVectorWidthDouble
public int getNativeVectorWidthDouble() -
getNativeVectorWidthHalf
public int getNativeVectorWidthHalf() -
getMaxClockFrequency
public int getMaxClockFrequency() -
getAddressBits
public int getAddressBits() -
getMaxMemAllocSize
public long getMaxMemAllocSize() -
getImageSupport
public boolean getImageSupport() -
getMaxReadImageArgs
public int getMaxReadImageArgs() -
getMaxWriteImageArgs
public int getMaxWriteImageArgs() -
getImage2DMaxWidth
public long getImage2DMaxWidth() -
getImage2DMaxHeight
public long getImage2DMaxHeight() -
getImage3DMaxWidth
public long getImage3DMaxWidth() -
getImage3DMaxHeight
public long getImage3DMaxHeight() -
getImage3DMaxDepth
public long getImage3DMaxDepth() -
getImageMaxBufferSize
public long getImageMaxBufferSize() -
getImageMaxArraySize
public long getImageMaxArraySize() -
getMaxSamplers
public int getMaxSamplers() -
getMaxParameterSize
public long getMaxParameterSize() -
getMemBaseAddrAlign
public int getMemBaseAddrAlign() -
getSinglFPConfig
public long getSinglFPConfig() -
getDoubleFPConfig
public long getDoubleFPConfig() -
getGlobalMemCacheType
public int getGlobalMemCacheType() -
getGlobalMemCachelineSize
public int getGlobalMemCachelineSize() -
getGlobalMemCacheSize
public long getGlobalMemCacheSize() -
getGlobalMemSize
public long getGlobalMemSize() -
getMaxConstantBufferSize
public long getMaxConstantBufferSize() -
getMaxConstantArgs
public int getMaxConstantArgs() -
getLocalMemType
public int getLocalMemType() -
getLocalMemSize
public long getLocalMemSize() -
getErrorCorrectionSupport
public boolean getErrorCorrectionSupport() -
getHostUnifiedMemory
public boolean getHostUnifiedMemory() -
getProfilingTimerResolution
public long getProfilingTimerResolution() -
getEndianLittle
public boolean getEndianLittle() -
getAvailable
public boolean getAvailable() -
getCompilerAvailable
public boolean getCompilerAvailable() -
getLinkerAvailable
public boolean getLinkerAvailable() -
getExecutionCapabilities
public long getExecutionCapabilities() -
getQueueProperties
public long getQueueProperties() -
getBuiltInKernels
public java.lang.String getBuiltInKernels() -
getPlatform
- Overrides:
getPlatform
in classCLExtendable
-
getName
public java.lang.String getName() -
getVendor
public java.lang.String getVendor() -
getDriverVersion
public java.lang.String getDriverVersion() -
getProfile
public java.lang.String getProfile() -
getVersion
public java.lang.String getVersion() -
getOpenCLCVersion
public java.lang.String getOpenCLCVersion() -
getDeviceExtensions
public java.lang.String getDeviceExtensions() -
getPrintfBufferSize
public long getPrintfBufferSize() -
getPreferredInteropUserSync
public boolean getPreferredInteropUserSync() -
getParentDevice
-
getPartitionMaxSubDevices
public int getPartitionMaxSubDevices() -
getPartitionProperties
-
getPartitionAffinityDomain
public long getPartitionAffinityDomain() -
getPartitionType
-