29package com.jogamp.opencl;
31import java.nio.ByteOrder;
32import java.util.ArrayList;
33import java.util.Collections;
34import java.util.EnumSet;
35import java.util.HashSet;
38import java.util.Scanner;
41import com.jogamp.opencl.llb.CL;
42import com.jogamp.opencl.spi.CLInfoAccessor;
43import com.jogamp.opencl.util.CLUtil;
55 private Set<String> extensions;
62 this.platform = platform;
82 if(properties !=
null) {
83 for (
int i = 0; i < properties.length; i++) {
84 flags |= properties[i].QUEUE_MODE;
92 throw new IllegalStateException(
"this device is not associated with a context");
93 return context.createCommandQueue(
this, properties);
183 @
CLProperty(
"CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT")
192 @
CLProperty(
"CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR")
201 @
CLProperty(
"CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT")
210 @
CLProperty(
"CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG")
219 @
CLProperty(
"CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT")
228 @
CLProperty(
"CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE")
237 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR")
246 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT")
255 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_INT")
264 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG")
273 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF")
282 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT")
291 @
CLProperty(
"CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE")
328 @
CLProperty(
"CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS")
401 @
CLProperty(
"CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE")
409 @
CLProperty(
"CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE")
417 @
CLProperty(
"CL_DEVICE_GLOBAL_MEM_CACHE_SIZE")
514 @
CLProperty(
"CL_DEVICE_PROFILING_TIMER_RESOLUTION")
522 @
CLProperty(
"CL_DEVICE_EXECUTION_CAPABILITIES")
539 return EnumSet.noneOf(
FPConfig.class);
565 return EnumSet.noneOf(
FPConfig.class);
579 @
CLProperty(
"CL_DEVICE_GLOBAL_MEM_CACHE_TYPE")
624 @
CLProperty(
"CL_DEVICE_ERROR_CORRECTION_SUPPORT")
660 @
CLProperty(
"cl_khr_gl_sharing | cl_APPLE_gl_sharing")
678 return ByteOrder.LITTLE_ENDIAN;
680 return ByteOrder.BIG_ENDIAN;
690 if(extensions ==
null) {
691 extensions =
new HashSet<String>();
693 final Scanner scanner =
new Scanner(ext);
695 while(scanner.hasNext())
696 extensions.add(scanner.next());
698 extensions = Collections.unmodifiableSet(extensions);
718 return "CLDevice [id: " +
ID
725 public boolean equals(
final Object obj) {
729 if (getClass() != obj.getClass()) {
733 if (this.
ID != other.
ID) {
742 hash = 79 * hash + (int) (this.
ID ^ (this.
ID >>> 32));
775 return EXEC_NATIVE_KERNEL;
780 public static EnumSet<Capabilities>
valuesOf(
final int bitfield) {
781 if((EXEC_KERNEL.CAPS & bitfield) != 0) {
782 if((EXEC_NATIVE_KERNEL.CAPS & bitfield) != 0) {
783 return EnumSet.of(EXEC_KERNEL, EXEC_NATIVE_KERNEL);
785 return EnumSet.of(EXEC_KERNEL);
787 }
else if((EXEC_NATIVE_KERNEL.CAPS & bitfield) != 0){
788 return EnumSet.of(EXEC_NATIVE_KERNEL);
827 private Type(
final long type) {
836 switch((
int)clDeviceType) {
892 private FPConfig(
final int config) {
893 this.CONFIG = config;
899 public static EnumSet<FPConfig>
valuesOf(
final int bitfield) {
900 final List<FPConfig> matching =
new ArrayList<FPConfig>();
902 for (
final FPConfig value : values) {
903 if((value.CONFIG & bitfield) != 0)
906 if(matching.isEmpty())
907 return EnumSet.noneOf(
FPConfig.class);
909 return EnumSet.copyOf(matching);
950 if(value.TYPE == bitfield)
The command queue is used to queue a set of operations for a specific CLDevice.
CLContext is responsible for managing objects such as command-queues, memory, program and kernel obje...
CLPlatform getPlatform()
Returns the CLPlatform this context is running on.
This object represents an OpenCL device.
CLDevice(final CLContext context, final long id)
final CLInfoAccessor getCLAccessor()
int getNativeHalfVectorWidth()
Native vector width size for built-in half vectors.
CLVersion getVersion()
Returns the OpenCL version supported by the device.
int getAddressBits()
The default compute device address space size specified in bits.
boolean isLittleEndian()
Returns true if the OpenCL device is a little endian device and false otherwise.
int getMaxImage3dWidth()
Returns the max width of 3D image in pixels.
boolean isExtensionAvailable(final String extension)
Returns true if the extension is supported on this device.
boolean isImageSupportAvailable()
Returns true if images are supported by the OpenCL device and false otherwise.
CLDevice(final CLPlatform platform, final long id)
long getMaxConstantBufferSize()
Returns the max size in bytes of a constant buffer allocation.
boolean isCompilerAvailable()
Returns false if the implementation does not have a compiler available to compile the program source.
CLCommandQueue createCommandQueue(final CLCommandQueue.Mode property)
boolean isMemoryUnified()
Returns true if the device and the host have a unified memory subsystem.
CLCommandQueue createCommandQueue(final long properties)
CLCommandQueue createCommandQueue(final CLCommandQueue.Mode... properties)
String getName()
Returns the name of this device.
long getMaxMemAllocSize()
Returns the largest allocatable size of a CLBuffer on this device.
int getNativeShortVectorWidth()
Native vector width size for built-in short vectors.
int getNativeFloatVectorWidth()
Native vector width size for built-in float vectors.
int getNativeDoubleVectorWidth()
Native vector width size for built-in double vectors.
String getDriverVersion()
Returns OpenCL software driver version string in the form major_number.minor_number.
int getPreferredShortVectorWidth()
Preferred native vector width size for built-in short vectors.
GlobalMemCacheType getGlobalMemCacheType()
Returns the type of global memory cache supported.
int getPreferredDoubleVectorWidth()
Preferred native vector width size for built-in double vectors.
Type getType()
Returns the type of this device.
int getMaxWorkGroupSize()
Returns the maximum number of work-items in a work-group executing a kernel using the data parallel e...
int getMaxSamplers()
Returns the maximum number of samplers that can be used in a kernel.
boolean isHalfFPAvailable()
Returns isExtensionAvailable("cl_khr_fp16").
EnumSet< Capabilities > getExecutionCapabilities()
Returns the execution capabilities as EnumSet.
int getMaxWriteImageArgs()
Returns the max number of simultaneous image objects that can be written by a kernel.
CLCommandQueue createCommandQueue()
String getVendor()
Returns the vendor of this device.
int getPreferredCharVectorWidth()
Preferred native vector width size for built-in char vectors.
Map< String, String > getProperties()
Returns a Map of device properties with the enum names as keys.
int getMaxWorkItemDimensions()
Returns the maximum dimensions that specify the global and local work-item IDs used by the data paral...
Set< String > getExtensions()
Returns all device extension names as unmodifiable Set.
long getProfilingTimerResolution()
Returns the resolution of device timer.
String getProfile()
Returns the OpenCL profile of this device.
int getPreferredLongVectorWidth()
Preferred native vector width size for built-in long vectors.
int[] getMaxWorkItemSizes()
Returns the maximum number of work-items that can be specified in each dimension of the work-group.
int getNativeIntVectorWidth()
Native vector width size for built-in int vectors.
long getMaxParameterSize()
Returns the max size in bytes of the arguments that can be passed to a kernel.
boolean isDoubleFPAvailable()
Returns isExtensionAvailable("cl_khr_fp64").
int getMaxImage3dHeight()
Returns the max height of 3D image in pixels.
int getMaxImage2dHeight()
Returns the max height of 2D image in pixels.
long getLocalMemSize()
Returns the local memory size in bytes.
int getMaxImage2dWidth()
Returns the max width of 2D image in pixels.
boolean isErrorCorrectionSupported()
Returns true if the device implements error correction for the memories, caches, registers etc.
boolean equals(final Object obj)
int getNativeLongVectorWidth()
Native vector width size for built-in long vectors.
ByteOrder getByteOrder()
Returns ByteOrder#LITTLE_ENDIAN or ByteOrder#BIG_ENDIAN.
int getMaxImage3dDepth()
Returns the max depth of 3D image in pixels.
int getNativeCharVectorWidth()
Native vector width size for built-in char vectors.
EnumSet< FPConfig > getSingleFPConfig()
Returns the single precision floating-point capability of the device.
long getMemBaseAddrAlign()
Returns the uint32_t memory base address alignment value reinterpreted as a long value.
int getPreferredIntVectorWidth()
Preferred native vector width size for built-in int vectors.
EnumSet< FPConfig > getHalfFPConfig()
Returns the optional half precision floating-point capability of the device.
int getMaxReadImageArgs()
Returns the max number of simultaneous image objects that can be read by a kernel.
boolean isGLMemorySharingSupported()
Returns isExtensionAvailable("cl_khr_gl_sharing") || isExtensionAvailable("cl_APPLE_gl_sharing").
int getMaxComputeUnits()
Returns the number of parallel compute cores on the OpenCL device.
CLPlatform getPlatform()
Returns the platform for this OpenCL object.
EnumSet< CLCommandQueue.Mode > getQueueProperties()
Returns the command-queue properties supported by the device.
LocalMemType getLocalMemType()
Returns the local memory type.
long getGlobalMemCachelineSize()
Returns the size of global memory cache line in bytes.
long getMaxConstantArgs()
Returns the max number of arguments declared with the constant qualifier in a kernel.
long getVendorID()
Returns the vendor id of this device.
long getGlobalMemCacheSize()
Returns the size of global memory cache in bytes.
CLVersion getCVersion()
Returns the OpenCL-C version supported by the device.
int getMaxClockFrequency()
Returns the maximum configured clock frequency of the device in MHz.
boolean isAvailable()
Returns true if this device is available.
long getGlobalMemSize()
Returns the global memory size in bytes.
int getPreferredFloatVectorWidth()
Preferred native vector width size for built-in float vectors.
boolean isICDAvailable()
Returns isExtensionAvailable("cl_khr_icd").
EnumSet< FPConfig > getDoubleFPConfig()
Returns the optional double precision floating-point capability of the device.
Common superclass for all OpenCL objects.
final long ID
The OpenCL object handle.
Version of an OpenCL Implementation.
static Map< String, String > obtainDeviceProperties(final CLDevice dev)
Reads all device properties and returns them as key-value map.
Enumeration for the command-queue settings.
static EnumSet< Mode > valuesOf(final long bitfield)
Enumeration for the execution capabilities of the device.
EXEC_KERNEL
The OpenCL device can execute OpenCL kernels.
static Capabilities valueOf(final int caps)
static EnumSet< Capabilities > valuesOf(final int bitfield)
final int CAPS
Value of wrapped OpenCL device type.
EXEC_NATIVE_KERNEL
The OpenCL device can execute native kernels.
Describes floating-point capability of the device.
final int CONFIG
Value of wrapped OpenCL bitfield.
FMA
IEEE754-2008 fused multiply-add is supported.
INF_NAN
INF and quiet NaNs are supported.
ROUND_TO_INF
round to positive and negative infinity rounding modes supported.
static EnumSet< FPConfig > valuesOf(final int bitfield)
Returns a EnumSet for the given bitfield.
ROUND_TO_NEAREST
round to nearest rounding mode supported.
ROUND_TO_ZERO
round to zero rounding mode supported.
DENORM
denorms are supported.
Type of global memory cache supported.
NONE
Global memory cache not supported.
final int TYPE
Value of wrapped OpenCL value.
READ_WRITE
Read-write cache.
static GlobalMemCacheType valueOf(final int bitfield)
Returns the matching GlobalMemCacheType for the given cl type.
READ_ONLY
Read only cache.
Type of local memory cache supported.
GLOBAL
GLOBAL implies that no dedicated memory storage is available (global mem is used instead).
final int TYPE
Value of wrapped OpenCL value.
LOCAL
LOCAL implies dedicated local memory storage such as SRAM.
static LocalMemType valueOf(final int clLocalCacheType)
Returns the matching LocalMemCacheType for the given cl type.
Enumeration for the type of a device.
final long TYPE
Value of wrapped OpenCL device type.
ACCELERATOR
CL_DEVICE_TYPE_ACCELERATOR.
static Type valueOf(final long clDeviceType)
DEFAULT
CL_DEVICE_TYPE_DEFAULT.
Configures the mapping process.
Java bindings to OpenCL, the Open Computing Language.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE" with expression '0x103B', CType: int.
static final int CL_DEVICE_HOST_UNIFIED_MEMORY
Define "CL_DEVICE_HOST_UNIFIED_MEMORY" with expression '0x1035', CType: int.
static final int CL_FP_INF_NAN
Define "CL_FP_INF_NAN" with expression '(1 << 1)', CType: int.
static final int CL_FP_DENORM
Define "CL_FP_DENORM" with expression '(1 << 0)', CType: int.
static final int CL_DEVICE_AVAILABLE
Define "CL_DEVICE_AVAILABLE" with expression '0x1027', CType: int.
static final int CL_DEVICE_LOCAL_MEM_SIZE
Define "CL_DEVICE_LOCAL_MEM_SIZE" with expression '0x1023', CType: int.
static final int CL_DEVICE_MAX_MEM_ALLOC_SIZE
Define "CL_DEVICE_MAX_MEM_ALLOC_SIZE" with expression '0x1010', CType: int.
static final int CL_DEVICE_TYPE_CPU
Define "CL_DEVICE_TYPE_CPU" with expression '(1 << 1)', CType: int.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF" with expression '0x103C', CType: int.
static final int CL_DEVICE_NAME
Define "CL_DEVICE_NAME" with expression '0x102B', CType: int.
static final int CL_DRIVER_VERSION
Define "CL_DRIVER_VERSION" with expression '0x102D', CType: int.
static final int CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT
Define "CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT" with expression '0x1007', CType: int.
static final int CL_DEVICE_OPENCL_C_VERSION
Define "CL_DEVICE_OPENCL_C_VERSION" with expression '0x103D', CType: int.
static final int CL_DEVICE_IMAGE2D_MAX_WIDTH
Define "CL_DEVICE_IMAGE2D_MAX_WIDTH" with expression '0x1011', CType: int.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_INT
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_INT" with expression '0x1038', CType: int.
static final int CL_READ_ONLY_CACHE
Define "CL_READ_ONLY_CACHE" with expression '0x1', CType: int.
static final int CL_DEVICE_TYPE
Define "CL_DEVICE_TYPE" with expression '0x1000', CType: int.
static final int CL_DEVICE_SINGLE_FP_CONFIG
Define "CL_DEVICE_SINGLE_FP_CONFIG" with expression '0x101B', CType: int.
static final int CL_FP_ROUND_TO_INF
Define "CL_FP_ROUND_TO_INF" with expression '(1 << 4)', CType: int.
static final int CL_DEVICE_MAX_WORK_GROUP_SIZE
Define "CL_DEVICE_MAX_WORK_GROUP_SIZE" with expression '0x1004', CType: int.
static final int CL_DEVICE_MAX_WRITE_IMAGE_ARGS
Define "CL_DEVICE_MAX_WRITE_IMAGE_ARGS" with expression '0x100F', CType: int.
static final int CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS
Define "CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS" with expression '0x1003', CType: int.
static final int CL_DEVICE_IMAGE_SUPPORT
Define "CL_DEVICE_IMAGE_SUPPORT" with expression '0x1016', CType: int.
static final int CL_DEVICE_VENDOR
Define "CL_DEVICE_VENDOR" with expression '0x102C', CType: int.
static final int CL_DEVICE_MAX_CLOCK_FREQUENCY
Define "CL_DEVICE_MAX_CLOCK_FREQUENCY" with expression '0x100C', CType: int.
static final int CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG
Define "CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG" with expression '0x1009', CType: int.
static final int CL_DEVICE_EXECUTION_CAPABILITIES
Define "CL_DEVICE_EXECUTION_CAPABILITIES" with expression '0x1029', CType: int.
static final int CL_DEVICE_IMAGE3D_MAX_WIDTH
Define "CL_DEVICE_IMAGE3D_MAX_WIDTH" with expression '0x1013', CType: int.
static final int CL_DEVICE_IMAGE3D_MAX_DEPTH
Define "CL_DEVICE_IMAGE3D_MAX_DEPTH" with expression '0x1015', CType: int.
static final int CL_FP_ROUND_TO_NEAREST
Define "CL_FP_ROUND_TO_NEAREST" with expression '(1 << 2)', CType: int.
static final int CL_DEVICE_IMAGE3D_MAX_HEIGHT
Define "CL_DEVICE_IMAGE3D_MAX_HEIGHT" with expression '0x1014', CType: int.
static final int CL_TRUE
Define "CL_TRUE" with expression '1', CType: int.
static final int CL_DEVICE_MAX_SAMPLERS
Define "CL_DEVICE_MAX_SAMPLERS" with expression '0x1018', CType: int.
static final int CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE
Define "CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE" with expression '0x100B', CType: int.
static final int CL_DEVICE_LOCAL_MEM_TYPE
Define "CL_DEVICE_LOCAL_MEM_TYPE" with expression '0x1022', CType: int.
static final int CL_DEVICE_MAX_WORK_ITEM_SIZES
Define "CL_DEVICE_MAX_WORK_ITEM_SIZES" with expression '0x1005', CType: int.
static final int CL_READ_WRITE_CACHE
Define "CL_READ_WRITE_CACHE" with expression '0x2', CType: int.
static final int CL_GLOBAL
Define "CL_GLOBAL" with expression '0x2', CType: int.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG" with expression '0x1039', CType: int.
static final int CL_FP_ROUND_TO_ZERO
Define "CL_FP_ROUND_TO_ZERO" with expression '(1 << 3)', CType: int.
static final int CL_DEVICE_MAX_COMPUTE_UNITS
Define "CL_DEVICE_MAX_COMPUTE_UNITS" with expression '0x1002', CType: int.
static final int CL_DEVICE_IMAGE2D_MAX_HEIGHT
Define "CL_DEVICE_IMAGE2D_MAX_HEIGHT" with expression '0x1012', CType: int.
static final int CL_DEVICE_PROFILE
Define "CL_DEVICE_PROFILE" with expression '0x102E', CType: int.
static final int CL_DEVICE_PROFILING_TIMER_RESOLUTION
Define "CL_DEVICE_PROFILING_TIMER_RESOLUTION" with expression '0x1025', CType: int.
static final int CL_DEVICE_GLOBAL_MEM_SIZE
Define "CL_DEVICE_GLOBAL_MEM_SIZE" with expression '0x101F', CType: int.
static final int CL_DEVICE_MAX_READ_IMAGE_ARGS
Define "CL_DEVICE_MAX_READ_IMAGE_ARGS" with expression '0x100E', CType: int.
static final int CL_DEVICE_GLOBAL_MEM_CACHE_TYPE
Define "CL_DEVICE_GLOBAL_MEM_CACHE_TYPE" with expression '0x101C', CType: int.
static final int CL_LOCAL
Define "CL_LOCAL" with expression '0x1', CType: int.
static final int CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR
Define "CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR" with expression '0x1006', CType: int.
static final int CL_DEVICE_TYPE_GPU
Define "CL_DEVICE_TYPE_GPU" with expression '(1 << 2)', CType: int.
static final int CL_FP_FMA
Define "CL_FP_FMA" with expression '(1 << 5)', CType: int.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT" with expression '0x1037', CType: int.
static final long CL_DEVICE_TYPE_ALL
Define "CL_DEVICE_TYPE_ALL" with expression '0xFFFFFFFF', CType: long.
static final int CL_DEVICE_MAX_PARAMETER_SIZE
Define "CL_DEVICE_MAX_PARAMETER_SIZE" with expression '0x1017', CType: int.
static final int CL_DEVICE_TYPE_DEFAULT
Define "CL_DEVICE_TYPE_DEFAULT" with expression '(1 << 0)', CType: int.
static final int CL_DEVICE_TYPE_ACCELERATOR
Define "CL_DEVICE_TYPE_ACCELERATOR" with expression '(1 << 3)', CType: int.
static final int CL_DEVICE_QUEUE_PROPERTIES
Define "CL_DEVICE_QUEUE_PROPERTIES" with expression '0x102A', CType: int.
static final int CL_DEVICE_ADDRESS_BITS
Define "CL_DEVICE_ADDRESS_BITS" with expression '0x100D', CType: int.
static final int CL_DEVICE_COMPILER_AVAILABLE
Define "CL_DEVICE_COMPILER_AVAILABLE" with expression '0x1028', CType: int.
static final int CL_DEVICE_VENDOR_ID
Define "CL_DEVICE_VENDOR_ID" with expression '0x1001', CType: int.
static final int CL_DEVICE_DOUBLE_FP_CONFIG
Define "CL_DEVICE_DOUBLE_FP_CONFIG" with expression '0x1032', CType: int.
static final int CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE
Define "CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE" with expression '0x101D', CType: int.
static final int CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT
Define "CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT" with expression '0x100A', CType: int.
static final int CL_DEVICE_VERSION
Define "CL_DEVICE_VERSION" with expression '0x102F', CType: int.
static final int CL_DEVICE_ENDIAN_LITTLE
Define "CL_DEVICE_ENDIAN_LITTLE" with expression '0x1026', CType: int.
static final int CL_DEVICE_HALF_FP_CONFIG
Define "CL_DEVICE_HALF_FP_CONFIG" with expression '0x1033', CType: int.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR" with expression '0x1036', CType: int.
static final int CL_DEVICE_GLOBAL_MEM_CACHE_SIZE
Define "CL_DEVICE_GLOBAL_MEM_CACHE_SIZE" with expression '0x101E', CType: int.
static final int CL_DEVICE_MEM_BASE_ADDR_ALIGN
Define "CL_DEVICE_MEM_BASE_ADDR_ALIGN" with expression '0x1019', CType: int.
static final int CL_NONE
Define "CL_NONE" with expression '0x0', CType: int.
static final int CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE
Define "CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE" with expression '0x1020', CType: int.
static final int CL_DEVICE_MAX_CONSTANT_ARGS
Define "CL_DEVICE_MAX_CONSTANT_ARGS" with expression '0x1021', CType: int.
static final int CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT
Define "CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT" with expression '0x103A', CType: int.
static final int CL_EXEC_KERNEL
Define "CL_EXEC_KERNEL" with expression '(1 << 0)', CType: int.
static final int CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT
Define "CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT" with expression '0x1008', CType: int.
static final int CL_DEVICE_EXTENSIONS
Define "CL_DEVICE_EXTENSIONS" with expression '0x1030', CType: int.
static final int CL_EXEC_NATIVE_KERNEL
Define "CL_EXEC_NATIVE_KERNEL" with expression '(1 << 1)', CType: int.
static final int CL_DEVICE_ERROR_CORRECTION_SUPPORT
Define "CL_DEVICE_ERROR_CORRECTION_SUPPORT" with expression '0x1024', CType: int.
CLInfoAccessor createDeviceInfoAccessor(CL cl, long id)
Internal utility for common OpenCL clGetFooInfo calls.
long getLong(int key)
Returns the long value for the given key.
long getUInt32Long(int key)
Returns the uint32_t value for the given key, reinterpreted as a long value.
int[] getInts(int key, int n)
String getString(int key)
Returns the String value for the given key.