3.4.1. Mixed Version Support
3.4.1. 混合版本支持
Mixed version support missing before version 1.1. 1.1版本之前缺少混合版本支持。 |
OpenCL supports devices with different capabilities under a single platform. This includes devices which conform to different versions of the OpenCL specification. There are three version identifiers to consider for an OpenCL system: the platform version, the version of a device, and the version(s) of the kernel language or IL supported on a device.
OpenCL在单个平台下支持具有不同功能的设备。这包括符合不同版本的OpenCL规范的设备。OpenCL系统需要考虑三个版本标识符:平台版本、设备版本和设备上支持的内核语言或IL版本。
The platform version indicates the version of the OpenCL runtime that is supported. This includes all of the APIs that the host can use to interact with resources exposed by the OpenCL runtime; including contexts, memory objects, devices, and command-queues.
平台版本表示支持的OpenCL运行时的版本。这包括主机可以用来与OpenCL运行时公开的资源交互的所有API;包括上下文、内存对象、设备和命令队列。
The device version is an indication of the device’s capabilities separate from the runtime and compiler as represented by the device info returned by clGetDeviceInfo. Examples of attributes associated with the device version are resource limits (e.g., minimum size of local memory per compute unit) and extended functionality (e.g., list of supported KHR extensions). The version returned corresponds to the highest version of the OpenCL specification for which the device is conformant, but is not higher than the platform version.
设备版本是独立于运行时和编译器的设备功能的指示,由clGetDeviceInfo返回的设备信息表示。与设备版本相关联的属性的示例是资源限制(例如,每个计算单元的本地存储器的最小大小)和扩展功能(例如,支持的KHR扩展的列表)。返回的版本对应于设备符合的OpenCL规范的最高版本,但不高于平台版本。
The language version for a device represents the OpenCL programming language features a developer can assume are supported on a given device. The version reported is the highest version of the language supported.
设备的语言版本代表了开发者可以假设在给定设备上支持的OpenCL编程语言功能。报告的版本是支持的语言的最高版本。