C Specification
To get specific information about an OpenCL device, call the function:
// Provided by CL_VERSION_1_0
cl_int clGetDeviceInfo(
    cl_device_id device,
    cl_device_info param_name,
    size_t param_value_size,
    void* param_value,
    size_t* param_value_size_ret);Parameters
- 
device may be a device returned by clGetDeviceIDs or a sub-device created by clCreateSubDevices. If device is a sub-device, the specific information for the sub-device will be returned. The information that can be queried using clGetDeviceInfo is specified in the Device Queries table. 
- 
param_name is an enumeration constant that identifies the device information being queried. It can be one of the following values as specified in the Device Queries table. 
- 
param_value is a pointer to memory location where appropriate values for a given param_name, as specified in the Device Queries table, will be returned. If param_value is NULL, it is ignored.
- 
param_value_size specifies the size in bytes of memory pointed to by param_value. This size must be greater than or equal to the size of the return type specified in the Device Queries table. If param_value is NULL, it is ignored.
- 
param_value_size_ret returns the actual size in bytes of data being queried by param_name. If param_value_size_ret is NULL, it is ignored.
Description
The device queries described in the Device Queries table should return the same information for a root-level device i.e. a device returned by clGetDeviceIDs and any sub-devices created from this device except for the following queries:
- 
CL_DEVICE_GLOBAL_ MEM_ CACHE_ SIZE 
- 
CL_DEVICE_BUILT_ IN_ KERNELS 
- 
CL_DEVICE_PARENT_ DEVICE 
- 
CL_DEVICE_PARTITION_ TYPE 
- 
CL_DEVICE_REFERENCE_ COUNT 
| Device Info | Return Type | Description | 
|---|---|---|
| 
 | 
 | The type of the OpenCL device.
        The device type is purely informational and has no semantic meaning.
        The device must report a single device type, which must not be
         Please see the Device Types table for supported device types and device type descriptions. | 
| 
 | 
 | A unique device vendor identifier.         If the vendor has a PCI vendor ID, the low 16 bits must contain that PCI
        vendor ID, and the remaining bits must be set to zero. Otherwise, the
        value returned must be a valid Khronos vendor ID represented by type
         | 
| 
 | 
 | The number of parallel compute units on the OpenCL device. A work-group executes on a single compute unit. The minimum value is 1. | 
| 
 | 
 | Maximum dimensions that specify the global and local work-item IDs used by the data parallel execution model. (Refer to clEnqueueNDRangeKernel). The minimum value is 3. | 
| 
 | 
 | Maximum number of work-items that can be specified in each dimension of the work-group to clEnqueueNDRangeKernel.         Returns n  The minimum value is (1, 1, 1). | 
| 
 | 
 | Maximum number of work-items in a work-group that a device is
        capable of executing on a single compute unit, for any given
        kernel-instance running on the device. (Refer also to
        clEnqueueNDRangeKernel and  | 
| 
    | 
 | Preferred native vector width size for built-in scalar types that can be put into vectors. The vector width is defined as the number of scalar elements that can be stored in the vector.         If double precision is not supported,
                 If the  | 
| 
 missing before version 1.1. | 
 | Returns the native ISA vector width. The vector width is defined as the number of scalar elements that can be stored in the vector.         If double precision is not supported,
                 If the  | 
| 
 | 
 | Clock frequency of the device in MHz. The meaning of this value is implementation-defined. For devices with multiple clock domains, the clock frequency for any of the clock domains may be returned. For devices that dynamically change frequency for power or thermal reasons, the returned clock frequency may be any valid frequency. Note: This definition is missing before version 2.2. Maximum configured clock frequency of the device in MHz. Note: This definition is deprecated by version 2.2. | 
| 
 | 
 | The default compute device address space size of the global address space specified as an unsigned integer value in bits. Currently supported values are 32 or 64 bits. | 
| 
 | 
 | Max size of memory object allocation in bytes.
        The minimum value is max(min(1024 × 1024 × 1024, 1/4th
        of  | 
| 
 | 
 | Is  | 
| 
 | 
 | Max number of image objects arguments of a kernel declared with the
        read_only qualifier.
        The minimum value is 128 if  | 
| 
 | 
 | Max number of image objects arguments of a kernel declared with the
        write_only qualifier.
        The minimum value is 64 if  | 
| 
 missing before version 2.0. | 
 | Max number of image objects arguments of a kernel declared with the write_only or read_write qualifier.         Support for read-write image arguments is required for an OpenCL 2.0, 2.1,
        or 2.2 device if  The minimum value is 64 if the device supports read-write images arguments, and must be 0 for devices that do not support read-write images. | 
| 
 missing before version 2.1. or 
 provided by the  | 
 | The intermediate languages that can be supported by clCreateProgramWithIL for this device. Returns a space-separated list of IL version strings of the form <IL_Prefix>_<Major_Version>.<Minor_Version> For an OpenCL 2.1 or 2.2 device, SPIR-V is a required IL prefix.         If the device does not support intermediate language programs, the
        value must be          A device that supports the  | 
| 
 missing before version 3.0. or 
 provided by the  | 
 or  | Returns an array of descriptions (name and version) for all supported
        intermediate languages.
        Intermediate languages with the same name may be reported more than
        once but each name and major/minor version combination may only be
        reported once.
        The list of intermediate languages reported must match the list
        reported via  For an OpenCL 2.1 or 2.2 device, at least one version of SPIR-V must be reported. | 
| 
 provided by the  | const  | Returns an array of null-terminated strings, where each string describes a SPIR-V extended instruction set that is supported by the device. | 
| 
 provided by the  | const  | Returns an array of null-terminated strings, where each string describes a SPIR-V extension that is supported by the device. | 
| 
 provided by the  | 
 | Returns an array of SPIR-V token values, where each value describes a SPIR-V capability that is supported by the device. | 
| 
 | 
 | Max width of 2D image or 1D image not created from a buffer object in pixels.         The minimum value is 16384 if  | 
| 
 | 
 | Max height of 2D image in pixels.         The minimum value is 16384 if  | 
| 
 | 
 | Max width of 3D image in pixels.         The minimum value is 2048 if  | 
| 
 | 
 | Max height of 3D image in pixels.         The minimum value is 2048 if  | 
| 
 | 
 | Max depth of 3D image in pixels.         The minimum value is 2048 if  | 
| 
 missing before version 1.2. | 
 | Max number of pixels for a 1D image created from a buffer object.         The minimum value is 65536 if  | 
| 
 missing before version 1.2. | 
 | Max number of images in a 1D or 2D image array.         The minimum value is 2048 if  | 
| 
 | 
 | Maximum number of samplers that can be used in a kernel.         The minimum value is 16 if  | 
| 
 missing before version 2.0. The equivalent  | 
 | The row pitch alignment size in pixels for 2D images created from a buffer. The value returned must be a power of 2.         Support for 2D images created from a buffer is required for an OpenCL 2.0, 2.1,
        or 2.2 device if  This value must be 0 for devices that do not support 2D images created from a buffer.         If the  | 
| 
 missing before version 2.0. The equivalent  | 
 | This query specifies the minimum alignment in pixels of the host_ptr
        specified to clCreateBuffer or clCreateBufferWithProperties when a 2D image
        is created from a buffer which was created using          Support for 2D images created from a buffer is required for an OpenCL 2.0, 2.1,
        or 2.2 device if  This value must be 0 for devices that do not support 2D images created from a buffer.         If the  | 
| 
 missing before version 2.0. | 
 | The maximum number of pipe objects that can be passed as arguments to a kernel. The minimum value is 16 for devices supporting pipes, and must be 0 for devices that do not support pipes. | 
| 
 missing before version 2.0. | 
 | The maximum number of reservations that can be active for a pipe per work-item in a kernel. A work-group reservation is counted as one reservation per work-item. The minimum value is 1 for devices supporting pipes, and must be 0 for devices that do not support pipes. | 
| 
 missing before version 2.0. | 
 | The maximum size of pipe packet in bytes. Support for pipes is required for an OpenCL 2.0, 2.1, or 2.2 device. The minimum value is 1024 bytes if the device supports pipes, and must be 0 for devices that do not support pipes. | 
| 
 | 
 | Max size in bytes of all arguments that can be passed to a kernel. The minimum value is 1024. For this minimum value, only a maximum of 128 arguments can be passed to a kernel. For all other values, a maximum of 255 arguments can be passed to a kernel. | 
| 
 | 
 | Alignment requirement (in bits) for sub-buffer offsets. The minimum value is the size (in bits) of the largest OpenCL built-in data type supported by the device (long16 in FULL profile, long16 or int16 in EMBEDDED profile). | 
| 
 deprecated by version 1.2. | 
 | The minimum value is the size (in bytes) of the largest OpenCL data
        type supported by the device ( | 
| 
 | 
 | Describes single precision floating-point capability of the device. This is a bit-field that describes one or more of the following values:          For the full profile, the mandated minimum floating-point capability is:          For the embedded profile, see the dedicated table. | 
| 
 missing before version 1.2. Also see  | 
 | Describes double precision floating-point capability of the OpenCL device. This is a bit-field that describes one or more of the following values:          Double precision is an optional feature so the mandated minimum double precision floating-point capability is 0. If double precision is supported by the device, then the minimum double precision floating-point capability for OpenCL 2.0 or newer devices is:          or for OpenCL 1.0, OpenCL 1.1 or OpenCL 1.2 devices:          | 
| 
 | 
 | Type of global memory cache supported.
        Valid values are:  | 
| 
 | 
 | Size of global memory cache line in bytes. | 
| 
 | 
 | Size of global memory cache in bytes. | 
| 
 | 
 | Size of global device memory in bytes. | 
| 
 | 
 | Max size in bytes of a constant buffer allocation. The minimum value is 64 KB. | 
| 
 | 
 | Max number of arguments declared with the  | 
| 
 missing before version 2.0. | 
 | The maximum number of bytes of storage that may be allocated for any single variable in program scope or inside a function in an OpenCL kernel language declared in the global address space. Support for program scope global variables is required for an OpenCL 2.0, 2.1, or 2.2 device. The minimum value is 64 KB if the device supports program scope global variables, and must be 0 for devices that do not support program scope global variables. | 
| 
 missing before version 2.0. | 
 | Maximum preferred total size, in bytes, of all program variables in the global address space. This is a performance hint. An implementation may place such variables in storage with optimized device access. This query returns the capacity of such storage. The minimum value is 0. | 
| 
 | 
 | Type of local memory supported.
        This can be set to          For custom devices,  | 
| 
 | 
 | Size of local memory region in bytes. The minimum value is 32 KB. | 
| 
 | 
 | Is  | 
| 
 missing before version 1.1 and deprecated by version 2.0. | 
 | Is  | 
| 
 | 
 | Describes the resolution of device timer. This is measured in nanoseconds. Refer to Profiling Operations for details. | 
| 
 | 
 | Is  | 
| 
 | 
 | Is  | 
| 
 | 
 | Is          Is  | 
| 
 missing before version 1.2. | 
 | Is          This can be          This must be  | 
| 
 | 
 | Describes the execution capabilities of the device. This is a bit-field that describes one or more of the following values:                  The mandated minimum capability is:  | 
| 
 deprecated by version 2.0. | 
 | See description of  | 
| 
 missing before version 2.0. | 
 | Describes the on host command-queue properties supported by the device. This is a bit-field that describes one or more of the following values:          These properties are described in the Queue Properties table.         The mandated minimum capability is:  | 
| 
 missing before version 2.0. | 
 | Describes the on device command-queue properties supported by the device. This is a bit-field that describes one or more of the following values:          These properties are described in the Queue Properties table. Support for on-device queues is required for an OpenCL 2.0, 2.1, or 2.2 device. When on-device queues are supported, the mandated minimum capability is:          Must be 0 for devices that do not support on-device queues. | 
| 
 missing before version 2.0. | 
 | The preferred size of the device queue, in bytes. Applications should use this size for the device queue to ensure good performance. The minimum value is 16 KB for devices supporting on-device queues, and must be 0 for devices that do not support on-device queues. | 
| 
 missing before version 2.0. | 
 | The maximum size of the device queue in bytes. The minimum value is 256 KB for the full profile and 64 KB for the embedded profile for devices supporting on-device queues, and must be 0 for devices that do not support on-device queues. | 
| 
 missing before version 2.0. | 
 | The maximum number of device queues that can be created for this device in a single context. The minimum value is 1 for devices supporting on-device queues, and must be 0 for devices that do not support on-device queues. | 
| 
 missing before version 2.0. | 
 | The maximum number of events in use by a device queue.
        These refer to events returned by the  The minimum value is 1024 for devices supporting on-device queues, and must be 0 for devices that do not support on-device queues. | 
| 
 missing before version 1.2. | 
 | A semi-colon separated list of built-in kernels supported by the device. An empty string is returned if no built-in kernels are supported by the device. | 
| 
 missing before version 3.0. or 
 provided by the  | 
 or  | Returns an array of descriptions for the built-in kernels supported by
        the device.
        Each built-in kernel may only be reported once.
        The list of reported kernels must match the list returned via
         | 
| 
 | 
 | The platform associated with this device. | 
| 
 | 
 | Device name string. | 
| 
 | 
 | Vendor name string. | 
| 
 | 
 | OpenCL software driver version string. Follows a vendor-specific format. | 
| 
 | 
 | OpenCL profile string. Returns the profile name supported by the device. The profile name returned can be one of the following strings: FULL_PROFILE - if the device supports the OpenCL specification (functionality defined as part of the core specification and does not require any extensions to be supported). EMBEDDED_PROFILE - if the device supports the OpenCL embedded profile. | 
| 
 | 
 | OpenCL version string. Returns the OpenCL version supported by the device. This version string has the following format: OpenCL<space><major_version.minor_version><space><vendor-specific information> The major_version.minor_version value returned will be one of 1.0, 1.1, 1.2, 2.0, 2.1, 2.2, or 3.0. | 
| 
 missing before version 3.0. or 
 provided by the  | 
 or  | Returns the detailed (major, minor, patch) version supported by the
        device.
        The major and minor version numbers returned must match those
        returned via  | 
| 
 missing before version 1.1 and deprecated by version 3.0. | 
 | Returns the highest fully backwards compatible OpenCL C version supported by the compiler for the device. For devices supporting compilation from OpenCL C source, this will return a version string with the following format: OpenCL<space>C<space><major_version.minor_version><space><vendor-specific information> For devices that support compilation from OpenCL C source: Because OpenCL 3.0 is backwards compatible with OpenCL C 1.2, an OpenCL 3.0 device must support at least OpenCL C 1.2. An OpenCL 3.0 device may return an OpenCL C version newer than OpenCL C 1.2 if and only if all optional OpenCL C features are supported by the device for the newer version. Support for OpenCL C 2.0 is required for an OpenCL 2.0, OpenCL 2.1, or OpenCL 2.2 device. Support for OpenCL C 1.2 is required for an OpenCL 1.2 device. Support for OpenCL C 1.1 is required for an OpenCL 1.1 device. Support for either OpenCL C 1.0 or OpenCL C 1.1 is required for an OpenCL 1.0 device.         For devices that do not support compilation from OpenCL C source,
        such as when          This query has been superseded by the  | 
| 
 missing before version 3.0. | 
 | Returns an array of name, version descriptions listing all the versions
        of OpenCL C supported by the compiler for the device.
        In each returned description structure, the name field is required to be
        "OpenCL C". The list may include both newer non-backwards compatible
        OpenCL C versions, such as OpenCL C 3.0, and older OpenCL C versions
        with mandatory backwards compatibility.
        The version returned by  For devices that support compilation from OpenCL C source: Because OpenCL 3.0 is backwards compatible with OpenCL C 1.2, and OpenCL C 1.2 is backwards compatible with OpenCL C 1.1 and OpenCL C 1.0, support for at least OpenCL C 3.0, OpenCL C 1.2, OpenCL C 1.1, and OpenCL C 1.0 is required for an OpenCL 3.0 device. Support for OpenCL C 2.0, OpenCL C 1.2, OpenCL C 1.1, and OpenCL C 1.0 is required for an OpenCL 2.0, OpenCL 2.1, or OpenCL 2.2 device. Support for OpenCL C 1.2, OpenCL C 1.1, and OpenCL C 1.0 is required for an OpenCL 1.2 device. Support for OpenCL C 1.1 and OpenCL C 1.0 is required for an OpenCL 1.1 device. Support for at least OpenCL C 1.0 is required for an OpenCL 1.0 device. For devices that do not support compilation from OpenCL C source, this query may return an empty array. | 
| 
 provided by the  | 
 | Returns detailed (major, minor, patch) numeric version information.
      The major and minor version numbers returned must match those returned
      via        This query was not promoted to core in OpenCL version 3.0, but the
      core query  | 
| 
 missing before version 3.0. | 
 | Returns an array of optional OpenCL C features supported by the compiler for the device alongside the OpenCL C version that introduced the feature macro. For example, if a compiler supports an OpenCL C 3.0 feature, the returned name will be the full name of the OpenCL C feature macro, and the returned version will be 3.0.0. For devices that do not support compilation from OpenCL C source, this query may return an empty array. | 
| 
 | 
 | Returns a space separated list of extension names (the extension names themselves do not contain any spaces) supported by the device. The list of extension names may include Khronos approved extension names and vendor specified extension names. The following Khronos extension names must be returned by all devices that support OpenCL 1.1:          Additionally, the following Khronos extension names must be returned by all devices that support OpenCL 1.2 when and only when the optional feature is supported:          Additionally, the following Khronos extension names must be returned by all devices that support OpenCL 2.0, OpenCL 2.1, or OpenCL 2.2. For devices that support OpenCL 3.0, these extension names must be returned when and only when the optional feature is supported:          Please refer to the OpenCL Extension Specification or vendor provided documentation for a detailed description of these extensions. | 
| 
 missing before version 3.0. or 
 provided by the  | 
 or  | Returns an array of description (name and version) structures. The same
        extension name must not be reported more than once. The list of
        extensions reported must match the list reported via
                 See  | 
| 
 missing before version 1.2. | 
 | Maximum size in bytes of the internal buffer that holds the output of printf calls from a kernel. The minimum value for the FULL profile is 1 MB. | 
| 
 missing before version 1.2. | 
 | Is  | 
| 
 missing before version 1.2. | 
 | Returns the  | 
| 
 missing before version 1.2. | 
 | Returns the maximum number of sub-devices that can be created when a device is partitioned.         The value returned cannot exceed  | 
| 
 missing before version 1.2. | 
 | Returns the list of partition types supported by device.
        This is an array of           If the device cannot be partitioned (i.e. there is no partitioning scheme supported by the device that will return at least two sub-devices), a value of 0 will be returned. | 
| 
 missing before version 1.2. | 
 | Returns the list of supported affinity domains for partitioning the
        device using           If the device does not support any affinity domains, a value of 0 will be returned. | 
| 
 missing before version 1.2. | 
 | Returns the properties argument specified in clCreateSubDevices if
        device is a sub-device.
        In the case where the properties argument to clCreateSubDevices is
                  Otherwise the implementation may either return a param_value_size_ret of 0 i.e. there is no partition type associated with device or can return a property value of 0 (where 0 is used to terminate the partition property list) in the memory that param_value points to. | 
| 
 missing before version 1.2. | 
 | Returns the device reference count. If the device is a root-level device, a reference count of one is returned. | 
| 
 missing before version 2.0. | 
 | Describes the various shared virtual memory (SVM) memory allocation types the device supports. This is a bit-field that describes a combination of the following values:                  The mandated minimum capability for an OpenCL 2.0, 2.1, or 2.2 device is
         For other device versions there is no mandated minimum capability. | 
| 
 missing before version 2.0. | 
 | Returns the value representing the preferred alignment in bytes for OpenCL 2.0 fine-grained SVM atomic types. This query can return 0 which indicates that the preferred alignment is aligned to the natural size of the type. | 
| 
 missing before version 2.0. | 
 | Returns the value representing the preferred alignment in bytes for OpenCL 2.0 atomic types to global memory. This query can return 0 which indicates that the preferred alignment is aligned to the natural size of the type. | 
| 
 missing before version 2.0. | 
 | Returns the value representing the preferred alignment in bytes for OpenCL 2.0 atomic types to local memory. This query can return 0 which indicates that the preferred alignment is aligned to the natural size of the type. | 
| 
 missing before version 2.1. | 
 | Maximum number of sub-groups in a work-group that a device is capable of executing on a single compute unit, for any given kernel-instance running on the device. The minimum value is 1 if the device supports sub-groups, and must be 0 for devices that do not support sub-groups. Support for sub-groups is required for an OpenCL 2.1 or 2.2 device. (Refer also to clGetKernelSubGroupInfo.) | 
| 
 missing before version 2.1. | 
 | Is          This query must return  | 
| 
 missing before version 3.0. | 
 | Describes the various memory orders and scopes that the device supports for atomic memory operations. This is a bit-field that describes a combination of the following values:          Because atomic memory orders are hierarchical, a device that supports a strong memory order must also support all weaker memory orders.          Because atomic scopes are hierarchical, a device that supports a wide scope must also support all narrower scopes, except for the work-item scope, which is a special case. The mandated minimum capability is:                  A device that does not support  | 
| 
 missing before version 3.0. | 
 | Describes the various memory orders and scopes that the device supports for atomic fence operations.
        This is a bit-field that has the same set of possible values as described for  The mandated minimum capability is:          | 
| 
 missing before version 3.0. | 
 | Is  | 
| 
 missing before version 3.0. | 
 | Is  | 
| 
 missing before version 3.0. | 
 | Is  | 
| 
 missing before version 3.0. | 
 | Describes device-side enqueue capabilities of the device. This is a bit-field that describes one or more of the following values:                  If          Devices that set  | 
| 
 missing before version 3.0. | 
 | Is        Devices that return  | 
| 
 missing before version 3.0. | 
 | Returns the preferred multiple of work-group size for the given device. This is a performance hint intended as a guide when specifying the local work size argument to clEnqueueNDRangeKernel.         (Refer also to clGetKernelWorkGroupInfo where  | 
| 
 missing before version 3.0. | 
 | Returns the latest version of the conformance test suite that this device has fully passed in accordance with the official conformance process. | 
| 
 provided by the  | 
 | Describes device command-buffer capabilities, encoded as bits in a bitfield. Supported capabilities are:          provided by the           provided by the           provided by the           provided by the  | 
| 
 provided by the  | 
 | Bitmask of the minimum properties with which a command-queue must be created to allow a command-buffer to be executed on it. It is valid for a command-queue to be created with extra properties in addition to this base requirement and still be compatible with command-buffer execution. | 
| 
 provided by the  | 
 | Bitmask of the supported properties with which a command-queue may be created to allow a command-buffer to be executed on it. It is invalid for a command-queue to be created with a property not reported and still be compatible with command-buffer execution.         The mandated minimum capability is:  | 
| 
 provided by the  | 
 | Return the number of root devices listed in
       | 
| 
 provided by the  | 
 | Return the list of root devices device can use device-side synchronization with. A device should list itself only if it has native support for synchronizing commands. Sub-devices are not listed to avoid non-deterministic results as sub-devices are created. Instead if a root device is listed, then any of its partitioned sub-devices can also be natively synchronized with. | 
| 
 provided by the  | 
 | Describes device mutable-dispatch capabilities, encoded as bits in a bitfield. Supported capabilities are:        provided by the         provided by the         provided by the         provided by the         provided by the  | 
| 
 provided by the  | 
 | Returns a universally unique identifier (UUID) for the device. Device UUIDs must be immutable for a given device across processes, driver APIs, driver versions, and system reboots.          | 
| 
 provided by the  | 
 | Returns a universally unique identifier (UUID) for the software driver for the device.          | 
| 
 provided by the  | 
 | Returns  | 
| 
 provided by the  | 
 | Returns a locally unique identifier (LUID) for the device.         It is not an error to query          When           | 
| 
 provided by the  | 
 | Returns a node mask for the device.         It is not an error to query          When  | 
| 
 provided by the  | 
 | Returns the list of importable external memory handle types supported by device. Must return a non-empty list of external memory handle types for at least one of the devices in the platform. | 
| 
 provided by the  | 
 | Returns the list of importable external memory handle types supported by device, that are assumed to apply linear layout to imported images when no other tiling information is provided.         This list contains a subset of
                 External memory handle types not in
         | 
| 
 provided by the  | 
 | Describes half-precision floating-point capability of the OpenCL device. This is a bit-field that describes one or more of the following values:          If half-precision is supported by the device, then the minimum half-precision floating-point capability is either:          or          | 
| 
 provided by the  | 
 | Returns the integer dot product capabilities supported by the device.                   | 
| 
 provided by the  | 
 | Returns a structure describing the exact 8-bit dot product
        combinations that are accelerated on the device.
        Each member is  | 
| 
 provided by the  | 
 | Returns a structure describing the exact 4x8-bit packed dot product
        combinations that are accelerated on the device.
        Each member is  | 
| 
 provided by the  | 
 | Returns the kernel clock capabilities of the device.                            | 
| 
 provided by the  | 
 | Returns PCI bus information for the device. The PCI bus information is returned as a single structure that includes the PCI bus domain, the PCI bus identifier, the PCI device identifier, and the PCI device function identifier. | 
| 
 provided by the  | 
 | Returns the list of the semaphore types supported by device.         Must return a non-empty list for at least one of the devices in the
        platform, meeting the minimum requirements described for
         | 
| 
 provided by the  | 
 | Returns the list of importable external semaphore handle types supported by device. This size of this query may be 0 indicating that the device does not support importing semaphores. | 
| 
 provided by the  | 
 | Returns the list of exportable external semaphore handle types supported by device. This size of this query may be 0 indicating that the device does not support exporting semaphores. | 
| 
 provided by the  | 
 | A space separated list of SPIR versions supported by the device.       For example, returning  | 
| 
 provided by the  | 
 | Maximum number of named barriers in a work-group for any given kernel-instance running on the device. The minimum value is 8. | 
| 
 provided by the  | 
 | Describes the termination capability of the OpenCL device. This is a bit-field, where the following values are currently supported:        | 
| 
 provided by the  | 
 | Returns the version of the C++ for OpenCL language supported by the device compiler. | 
OpenCL 3 devices must report the following feature macros via
CL_DEVICE_ when the corresponding bit is set in the bitfield
returned for CL_DEVICE_:
| Feature Bit | Feature Macro | 
|---|---|
| 
 | 
 | 
| 
 | 
 | 
OpenCL 3 devices must report the following feature macros via
CL_DEVICE_ when the corresponding bit is set in the bitfield
returned for CL_DEVICE_:
| Feature Bit | Feature Macro | 
|---|---|
| 
 | 
 | 
| 
 | 
 | 
| 
 | 
 | 
One of the two queries CL_DEVICE_ and
CL_DEVICE_ must return a non-empty list
indicating support for at least one of the valid semaphore handle types
either for import, for export, or both.
| Note While  | 
clGetDeviceInfo returns CL_SUCCESS if the function is executed
successfully.
Otherwise, it returns one of the following errors:
- 
CL_INVALID_if device is not a valid device.DEVICE 
- 
CL_INVALID_if param_name is not one of the supported values, or if the size in bytes specified by param_value_size is less than size of the return type specified in the Device Queries table and param_value is notVALUE NULL.
- 
CL_OUT_if there is a failure to allocate resources required by the OpenCL implementation on the device.OF_ RESOURCES 
- 
CL_OUT_if there is a failure to allocate resources required by the OpenCL implementation on the host.OF_ HOST_ MEMORY 
Document Notes
For more information, see the OpenCL Specification
This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.