C Specification

#pragma OPENCL EXTENSION cl_khr_spir : enable

Description

This extension adds support to create an OpenCL program object from a Standard Portable Intermediate Representation (SPIR) instance. SPIR is a vendor neutral non-source representation for OpenCL C programs that has since been superceded by the SPIR-V standard.

clCreateProgramWithBinary can be used to load a SPIR binary. Once a program object has been created from a SPIR binary, clBuildProgram can be called to build a program executable or clCompileProgram can be called to compile the SPIR binary.

This extension adds changes to the following:

See Also

Document Notes

For more information, see the OpenCL Extension Specification at URL

Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.