Add clSetContextDestructorCallback API function

Change-Id: If0f06ffcbd6236ef7ffbc78347e67897177eb121
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-08-07 16:02:36 +02:00
committed by sys_ocldev
parent fe5bda3ed1
commit c5866944f4
7 changed files with 71 additions and 3 deletions

View File

@@ -1006,6 +1006,11 @@ typedef CL_API_ENTRY cl_mem(CL_API_CALL *KHRpfn_clCreateImageWithProperties)(
void *hostPtr,
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_3_0;
typedef CL_API_ENTRY cl_int(CL_API_CALL *KHRpfn_clSetContextDestructorCallback)(
cl_context context,
void(CL_CALLBACK *pfnNotify)(cl_context context, void *userData),
void *userData) CL_API_SUFFIX__VERSION_3_0;
/* clCreateImage */
typedef CL_API_ENTRY cl_int(CL_API_CALL *INTELpfn_clGetImageParamsINTEL)(
@@ -1277,6 +1282,7 @@ struct SDispatchTable {
/* OpenCL 3.0 */
KHRpfn_clCreateBufferWithProperties clCreateBufferWithProperties;
KHRpfn_clCreateImageWithProperties clCreateImageWithProperties;
KHRpfn_clSetContextDestructorCallback clSetContextDestructorCallback;
};
struct SCRTDispatchTable {