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.
The compile option -x spir must be specified to indicate that the binary is in SPIR format, and the compile option -spir-std must be
used to specify the version of the SPIR specification that describes the format and meaning of the binary. For example, if the binary is as described
in SPIR version 1.2, then -spir-std=1.2 must be specified. Failing to specify these compile options may result in implementation defined
behavior.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_DEVICE_SPIR_VERSIONS
Accepted by |
| public static final int | CL_PROGRAM_BINARY_TYPE_INTERMEDIATE
Returned by |
| Access | Constructor and Description |
|---|---|
| private |
| CL_DEVICE_SPIR_VERSIONS | back to summary |
|---|---|
| public static final int CL_DEVICE_SPIR_VERSIONS Accepted by | |
| CL_PROGRAM_BINARY_TYPE_INTERMEDIATE | back to summary |
|---|---|
| public static final int CL_PROGRAM_BINARY_TYPE_INTERMEDIATE Returned by An intermediate (non-source) representation for the program is loaded as a binary. The program must be further processed with | |
| KHRSPIR | back to summary |
|---|---|
| private KHRSPIR() | |