3.4. The OpenCL Framework
3.4. OpenCL框架
The OpenCL framework allows applications to use a host and one or more OpenCL devices as a single heterogeneous parallel computer system. The framework contains the following components:
OpenCL框架允许应用程序将主机和一个或多个OpenCL设备用作单个异构并行计算机系统。该框架包含以下组件:
-
OpenCL Platform layer: The platform layer allows the host program to discover OpenCL devices and their capabilities and to create contexts.
-
OpenCL平台层:平台层允许主机程序发现OpenCL设备及其功能并创建上下文。
-
OpenCL Runtime: The runtime allows the host program to manipulate contexts once they have been created.
-
OpenCL运行时:运行时允许主机程序在创建上下文后对其进行操作。
-
OpenCL Compiler: The OpenCL compiler creates program executables that contain OpenCL kernels. The OpenCL compiler may build program executables from OpenCL C source strings, the SPIR-V intermediate language, or device-specific program binary objects, depending on the capabilities of a device. Other kernel languages or intermediate languages may be supported by some implementations.
-
OpenCL编译器:OpenCL编译器创建包含OpenCL内核的程序可执行文件。OpenCL编译器可以根据设备的功能,从OpenCL C源字符串、SPIR-V中间语言或设备特定的程序二进制对象构建程序可执行文件。某些实现可能支持其他内核语言或中间语言。
本文详细介绍了OpenCL框架,包括平台层用于设备发现与上下文创建,运行时处理已创建的上下文,以及OpenCL编译器生成包含OpenCL内核的程序执行文件。这些组件共同构成了异构并行计算的基础。
1201

被折叠的 条评论
为什么被折叠?



