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:
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.
| Modifier and Type | Field and Description |
|---|---|
| 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. |
| public static final int | CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR
Returns an array of description (name and version) structures. |
| public static final int | CL_DEVICE_ILS_WITH_VERSION_KHR
Returns an array of descriptions (name and version) for all supported Intermediate Languages. |
| public static final int | CL_DEVICE_NUMERIC_VERSION_KHR
Returns detailed (major, minor, patch) numeric version information. |
| public static final int | CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR
Returns detailed (major, minor, patch) numeric version information. |
| public static final int | CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR
Returns an array of description (name and version) structures. |
| public static final int | CL_PLATFORM_NUMERIC_VERSION_KHR
Returns detailed (major, minor, patch) numeric version information. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | CL_MAKE_VERSION_KHR(int
the major version number major, int the minor version number minor, int the patch version number patch)
|
| public static int | |
| public static int | |
| public static int |
| CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION_KHR | back to summary |
|---|---|
| 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. ( Each built-in kernel may only be reported once. The list of reported kernels must match the list returned via | |
| CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR 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 | |
| CL_DEVICE_ILS_WITH_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_DEVICE_ILS_WITH_VERSION_KHR 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 | |
| CL_DEVICE_NUMERIC_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_DEVICE_NUMERIC_VERSION_KHR Returns detailed (major, minor, patch) numeric version information. ( The major and minor version numbers returned must match those returned via | |
| CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR Returns detailed (major, minor, patch) numeric version information. ( The major and minor version numbers returned must match those returned via | |
| CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR 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 | |
| CL_PLATFORM_NUMERIC_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_PLATFORM_NUMERIC_VERSION_KHR Returns detailed (major, minor, patch) numeric version information. ( The major and minor version numbers returned must match those returned via | |
| CL_VERSION_MAJOR_BITS_KHR | back to summary |
|---|---|
| public static final int CL_VERSION_MAJOR_BITS_KHR | |
| CL_VERSION_MAJOR_MASK_KHR | back to summary |
|---|---|
| public static final int CL_VERSION_MAJOR_MASK_KHR | |
| CL_VERSION_MINOR_BITS_KHR | back to summary |
|---|---|
| public static final int CL_VERSION_MINOR_BITS_KHR | |
| CL_VERSION_MINOR_MASK_KHR | back to summary |
|---|---|
| public static final int CL_VERSION_MINOR_MASK_KHR | |
| CL_VERSION_PATCH_BITS_KHR | back to summary |
|---|---|
| public static final int CL_VERSION_PATCH_BITS_KHR | |
| CL_VERSION_PATCH_MASK_KHR | back to summary |
|---|---|
| public static final int CL_VERSION_PATCH_MASK_KHR | |
| KHRExtendedVersioning | back to summary |
|---|---|
| protected KHRExtendedVersioning() | |
| CL_MAKE_VERSION_KHR | back to summary |
|---|---|
public static int CL_MAKE_VERSION_KHR(int major, int minor, int patch)
| |
| CL_VERSION_MAJOR_KHR | back to summary |
|---|---|
public static int CL_VERSION_MAJOR_KHR(int version)
| |
| CL_VERSION_MINOR_KHR | back to summary |
|---|---|
public static int CL_VERSION_MINOR_KHR(int version)
| |
| CL_VERSION_PATCH_KHR | back to summary |
|---|---|
public static int CL_VERSION_PATCH_KHR(int version)
| |