Class KHRExtendedVersioning


  • public class KHRExtendedVersioning
    extends java.lang.Object
    Native bindings to the khr_extended_versioning extension.

    This extension introduces new platform and device queries that return detailed version information to applications.

    It makes it possible to return the exact revision of the specification or intermediate languages supported by an implementation. It also enables implementations to communicate a version number for each of the extensions they support and remove the requirement for applications to process strings to test for the presence of an extension or intermediate language or built-in kernel.

    This extension introduces a new scheme to encode detailed (major, minor, patch/revision) version information into a single 32-bit unsigned integer:

    • The major version is using bits 31-22
    • The minor version is using bits 21-12
    • The patch version is using bits 11-0

    This scheme enables two versions to be ordered using the standard C/C++ operators. Macros are provided to extract individual fields or compose a full version from the individual fields.

    • Field Detail

      • CL_VERSION_MAJOR_BITS_KHR

        public static final int CL_VERSION_MAJOR_BITS_KHR
        See Also:
        Constant Field Values
      • CL_VERSION_MINOR_BITS_KHR

        public static final int CL_VERSION_MINOR_BITS_KHR
        See Also:
        Constant Field Values
      • CL_VERSION_PATCH_BITS_KHR

        public static final int CL_VERSION_PATCH_BITS_KHR
        See Also:
        Constant Field Values
      • CL_VERSION_MAJOR_MASK_KHR

        public static final int CL_VERSION_MAJOR_MASK_KHR
        See Also:
        Constant Field Values
      • CL_VERSION_MINOR_MASK_KHR

        public static final int CL_VERSION_MINOR_MASK_KHR
        See Also:
        Constant Field Values
      • CL_VERSION_PATCH_MASK_KHR

        public static final int CL_VERSION_PATCH_MASK_KHR
        See Also:
        Constant Field Values
      • CL_PLATFORM_NUMERIC_VERSION_KHR

        public static final int CL_PLATFORM_NUMERIC_VERSION_KHR
        Returns detailed (major, minor, patch) numeric version information. (cl_version_khr)

        The major and minor version numbers returned must match those returned via PLATFORM_VERSION.

        See Also:
        Constant Field Values
      • CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR

        public static final int CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR
        Returns an array of description (name and version) structures. (cl_name_version_khr[])

        The same extension name must not be reported more than once. The list of extensions reported must match the list reported via PLATFORM_EXTENSIONS.

        See Also:
        Constant Field Values
      • CL_DEVICE_NUMERIC_VERSION_KHR

        public static final int CL_DEVICE_NUMERIC_VERSION_KHR
        Returns detailed (major, minor, patch) numeric version information. (cl_version_khr)

        The major and minor version numbers returned must match those returned via DEVICE_VERSION.

        See Also:
        Constant Field Values
      • CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR

        public static final int CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR
        Returns detailed (major, minor, patch) numeric version information. (cl_version_khr)

        The major and minor version numbers returned must match those returned via DEVICE_OPENCL_C_VERSION.

        See Also:
        Constant Field Values
      • CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR

        public static final int CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR
        Returns an array of description (name and version) structures. (cl_name_version_khr[])

        The same extension name must not be reported more than once. The list of extensions reported must match the list reported via DEVICE_EXTENSIONS.

        See Also:
        Constant Field Values
      • CL_DEVICE_ILS_WITH_VERSION_KHR

        public static final int CL_DEVICE_ILS_WITH_VERSION_KHR
        Returns an array of descriptions (name and version) for all supported Intermediate Languages. (cl_name_version_khr[])

        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 DEVICE_IL_VERSION.

        See Also:
        Constant Field Values
      • CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION_KHR

        public static final int CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION_KHR
        Returns an array of descriptions for the built-in kernels supported by the device. (cl_name_version_khr[])

        Each built-in kernel may only be reported once. The list of reported kernels must match the list returned via DEVICE_BUILT_IN_KERNELS.

        See Also:
        Constant Field Values
    • Method Detail

      • CL_VERSION_MAJOR_KHR

        public static int CL_VERSION_MAJOR_KHR​(int version)
      • CL_VERSION_MINOR_KHR

        public static int CL_VERSION_MINOR_KHR​(int version)
      • CL_VERSION_PATCH_KHR

        public static int CL_VERSION_PATCH_KHR​(int version)
      • CL_MAKE_VERSION_KHR

        public static int CL_MAKE_VERSION_KHR​(int major,
                                              int minor,
                                              int patch)
        Parameters:
        major - the major version number
        minor - the minor version number
        patch - the patch version number