This extension adds the ability to create programs with intermediate language (IL), usually SPIR-V. Further information about the format and contents of SPIR-V may be found in the SPIR-V Specification. Information about how SPIR-V modules behave in the OpenCL environment may be found in the OpenCL SPIR-V Environment Specification.
This functionality described by this extension is a core feature in OpenCL 2.1.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_DEVICE_IL_VERSION_KHR
Accepted as a new |
| public static final int | CL_PROGRAM_IL_KHR
Accepted as a new |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static long | clCreateProgramWithILKHR(long
must be a valid OpenCL context context, ByteBuffer a pointer to a il, IntBuffer length-byte block of memory containing intermediate languagewill return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates a new program object for context using the |
| public static long | clCreateProgramWithILKHR(long context, ByteBuffer il, int[] errcode_ret)
Array version of: |
| public static long | nclCreateProgramWithILKHR(long context, long il, long
the length of the block of memory pointed to by length, long errcode_ret)ilUnsafe version of: |
| CL_DEVICE_IL_VERSION_KHR | back to summary |
|---|---|
| public static final int CL_DEVICE_IL_VERSION_KHR Accepted as a new The intermediate languages that are be supported by Returns a space separated list of IL version strings of the form:
A device that supports the | |
| CL_PROGRAM_IL_KHR | back to summary |
|---|---|
| public static final int CL_PROGRAM_IL_KHR Accepted as a new Returns the program IL for programs created with If program is created with | |
| KHRILProgram | back to summary |
|---|---|
| protected KHRILProgram() | |
| clCreateProgramWithILKHR | back to summary |
|---|---|
| public static long clCreateProgramWithILKHR(long context, ByteBuffer il, IntBuffer errcode_ret) Creates a new program object for context using the
| |
| clCreateProgramWithILKHR | back to summary |
|---|---|
| public static long clCreateProgramWithILKHR(long context, ByteBuffer il, int[] errcode_ret) Array version of:
| |
| nclCreateProgramWithILKHR | back to summary |
|---|---|
| public static long nclCreateProgramWithILKHR(long context, long il, long length, long errcode_ret) Unsafe version of:
| |