[Mesa-dev] [PATCH v2 15/22] include/CL: Add cl_khr_il_program
Pierre Moreau
pierre.morrow at free.fr
Tue Jan 23 22:30:08 UTC 2018
On 2018-01-23 — 14:08, Francisco Jerez wrote:
> Pierre Moreau <pierre.morrow at free.fr> writes:
>
> > Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
>
> Same comment as Karol, let's update the header instead.
I will do that. Though that won’t impact this patch, as cl_khr_il_program is
not part of the official OpenCL headers. I have sent a pull request to their
repo, but have yet to hear back from someone with merge rights.
>
> > ---
> > include/CL/cl_ext.h | 34 ++++++++++++++++++++++++++++++++++
> > 1 file changed, 34 insertions(+)
> >
> > diff --git a/include/CL/cl_ext.h b/include/CL/cl_ext.h
> > index 710bea8837..2e4845d27d 100644
> > --- a/include/CL/cl_ext.h
> > +++ b/include/CL/cl_ext.h
> > @@ -308,6 +308,40 @@ typedef struct _cl_mem_ion_host_ptr
> >
> > #endif /* CL_VERSION_1_1 */
> >
> > +
> > +/*******************************
> > + * cl_khr_il_program extension *
> > + *******************************/
> > +
> > +#ifndef cl_khr_il_program
> > +#define cl_khr_il_program 1
> > +
> > +/* New property to clGetDeviceInfo for retrieving supported intermediate
> > + * languages
> > + */
> > +#define CL_DEVICE_IL_VERSION_KHR 0x105B
> > +
> > +/* New property to clGetProgramInfo for retrieving for retrieving the IL of a
> > + * program
> > + */
> > +#define CL_PROGRAM_IL_KHR 0x1169
> > +
> > +extern CL_API_ENTRY cl_program
> > + CL_API_CALL clCreateProgramWithILKHR(
> > + cl_context /* context */,
> > + const void * /* il */,
> > + size_t /* length */,
> > + cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2;
> > +
> > +typedef CL_API_ENTRY cl_program
> > + (CL_API_CALL *clCreateProgramWithILKHR_fn)(
> > + cl_context /* context */,
> > + const void * /* il */,
> > + size_t /* length */,
> > + cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2;
> > +
> > +#endif /* cl_khr_il_program */
> > +
> > #ifdef __cplusplus
> > }
> > #endif
> > --
> > 2.16.0
More information about the mesa-dev
mailing list