Ratification Status

Ratified

Extension and Version Dependencies

None

Deprecation State

Other Extension Metadata

Last Modified Date

2020-04-21

IP Status

No known IP claims.

Description

cl_khr_spir adds the ability to create an OpenCL program object from a Standard Portable Intermediate Representation (SPIR) instance. A SPIR instance is a vendor-neutral non-source representation for OpenCL C programs.

See the SPIR Compilation Options for information on compiling SPIR binaries.

cl_khr_spir has been superseded by the SPIR-V intermediate representation, which is supported by the cl_khr_il_program extension, and is a core feature in OpenCL 2.1.

New Enums

  • cl_device_info

    • CL_DEVICE_SPIR_VERSIONS

  • cl_program_binary_type

    • CL_PROGRAM_BINARY_TYPE_INTERMEDIATE

Version History

  • Revision 1.0.0, 2020-04-21

    • First assigned version.

See Also

No cross-references are available

Document Notes

For more information, see the OpenCL Specification

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0