OpenCL™规范 3.4.1. 混合版本支持

本文详细解释了OpenCL系统中平台版本、设备版本和内核语言版本的区别,以及它们在设备功能、资源限制和编程语言支持上的作用。开发者需了解这些版本标识以充分利用不同设备的能力。
摘要由CSDN通过智能技术生成
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编程语言功能。报告的版本是支持的语言的最高版本。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值