Class KHRSPIR
- java.lang.Object
-
- org.lwjgl.opencl.KHRSPIR
-
public final class KHRSPIR extends java.lang.Object
Native bindings to the khr_spir extension.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.
Compiler Options
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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CL_DEVICE_SPIR_VERSIONS
Accepted byGetDeviceInfo
.static int
CL_PROGRAM_BINARY_TYPE_INTERMEDIATE
-
-
-
Field Detail
-
CL_DEVICE_SPIR_VERSIONS
public static final int CL_DEVICE_SPIR_VERSIONS
Accepted byGetDeviceInfo
. Returns a space separated list of SPIR versions supported by the device. For example returning “1.2 2.0” in this query implies that SPIR version 1.2 and 2.0 are supported by the implementation.- See Also:
- Constant Field Values
-
CL_PROGRAM_BINARY_TYPE_INTERMEDIATE
public static final int CL_PROGRAM_BINARY_TYPE_INTERMEDIATE
Returned byGetProgramBuildInfo
whenparam_name
isPROGRAM_BINARY_TYPE
.An intermediate (non-source) representation for the program is loaded as a binary. The program must be further processed with
CompileProgram
orBuildProgram
. If processed withCompileProgram
, the result will be a binary of typePROGRAM_BINARY_TYPE_COMPILED_OBJECT
orPROGRAM_BINARY_TYPE_LIBRARY
. If processed withBuildProgram
, the result will be a binary of typePROGRAM_BINARY_TYPE_EXECUTABLE
.- See Also:
- Constant Field Values
-
-