|
||||||||||
Khronos Releases SPIR 2.0 Provisional SpecificationOpen, cross-platform intermediate representation standard for heterogeneous computing now supports portable encoding of OpenCL 2.0 device programs August 11th, 2014, Vancouver, SIGGRAPH – The Khronos™ Group today announced the ratification and public release of the SPIR™ 2.0 provisional specification that provides a non-source encoding, and binary level portability, for OpenCL™ 2.0 device programs. SPIR (Standard Portable Intermediate Representation) is the industry's first open, cross-platform Intermediate Representation standard for portable heterogeneous parallel computing and is based on LLVM IR. SPIR enables developers to avoid exposing sensitive kernel source and enables a diversity of language front-ends to easily target OpenCL platforms and devices in addition to OpenCL C. The SPIR specification and registry online. Before the development of SPIR, new tools and languages for accessing parallel acceleration on heterogeneous systems required specific and detailed knowledge to create compiler back-ends for each vendor's unique hardware architecture. The SPIR standard enables vendors to accept and accelerate SPIR binaries on their hardware, freeing higher-level languages to innovate across a diverse range of platforms including discrete accelerator boards, system on chips, graphics processors and FPGAs. For example, the developers of OpenACC, C++ AMP and Python are targeting SPIR to access optimized back-ends across multiple vendors SPIR enables a rich ecosystem of compiler middleware for portable parallel programs by building on the strengths of LLVM and OpenCL. SPIR 2.0 is a specialization of LLVM 3.4 IR, but also encodes OpenCL-specific semantics. The cl_khr_spir standard extension to OpenCL 1.2 and 2.0 defines how to load a SPIR instance into an OpenCL runtime. The development of SPIR has been validated on multiple vendor implementations of OpenCL, and has benefited from a thorough open consultation process between Khronos and the LLVM and Clang communities. The SPIR 2.0 provisional has been released to enable the growing community of OpenCL developers to provide feedback before the specification is finalized. Comments are welcome at the Khronos forum here. In OpenCL 2.0, host and device kernels can directly share complex, pointer-containing data structures such as trees and linked lists, providing significant programming flexibility and eliminating costly data transfers between host and devices. SPIR 2.0 includes new functionality to fully support new features released in OpenCL C 2.0, including:
“AMD continues to support industry standards such as OpenCL and SPIR, which we believe is the right approach for unleashing the full potential of heterogeneous computing,” said Manju Hegde, corporate vice president, Heterogeneous Applications and Developer Solutions, AMD. ”We are excited to see SPIR continuing to evolve to support OpenCL 2.0 and provide an improved platform for other heterogeneous language innovation. SPIR 2.0 provides the industry with a much needed standard binary format with sufficient flexibility to enable compiler and languages vendors with a common cross-platform target.” In addition to the SPIR specification, Khronos is making the following open source software components available on Github under the same license as LLVM and Clang:
SPIR 1.2 uses Clang/LLVM 3.2 and SPIR 2.0 uses Clang/LLVM 3.4. OpenCL BOF at SIGGRAPH 2014 About The Khronos Group
|
Home | Feedback | Register | Site Map |
All material on this site Copyright © 2017 Design And Reuse S.A. All rights reserved. |