mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Update OCL headers
Update headers to the OpenCL-Headers-2022.05.18 release: https://github.com/KhronosGroup/OpenCL-Headers/releases/tag/v2022.05.18 Related-to: NEO-7102 Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c86c518bc4
commit
fd867c1621
@@ -3821,7 +3821,7 @@ clSetPerformanceConfigurationINTEL(
|
||||
return CL_INVALID_OPERATION;
|
||||
}
|
||||
|
||||
void *clHostMemAllocINTEL(
|
||||
CL_API_ENTRY void *CL_API_CALL clHostMemAllocINTEL(
|
||||
cl_context context,
|
||||
const cl_mem_properties_intel *properties,
|
||||
size_t size,
|
||||
@@ -3861,7 +3861,7 @@ void *clHostMemAllocINTEL(
|
||||
return neoContext->getSVMAllocsManager()->createHostUnifiedMemoryAllocation(size, unifiedMemoryProperties);
|
||||
}
|
||||
|
||||
void *clDeviceMemAllocINTEL(
|
||||
CL_API_ENTRY void *CL_API_CALL clDeviceMemAllocINTEL(
|
||||
cl_context context,
|
||||
cl_device_id device,
|
||||
const cl_mem_properties_intel *properties,
|
||||
@@ -3909,7 +3909,7 @@ void *clDeviceMemAllocINTEL(
|
||||
return neoContext->getSVMAllocsManager()->createUnifiedMemoryAllocation(size, unifiedMemoryProperties);
|
||||
}
|
||||
|
||||
void *clSharedMemAllocINTEL(
|
||||
CL_API_ENTRY void *CL_API_CALL clSharedMemAllocINTEL(
|
||||
cl_context context,
|
||||
cl_device_id device,
|
||||
const cl_mem_properties_intel *properties,
|
||||
@@ -3967,9 +3967,9 @@ void *clSharedMemAllocINTEL(
|
||||
return ptr;
|
||||
}
|
||||
|
||||
cl_int clMemFreeCommon(cl_context context,
|
||||
const void *ptr,
|
||||
bool blocking) {
|
||||
CL_API_ENTRY cl_int CL_API_CALL clMemFreeCommon(cl_context context,
|
||||
const void *ptr,
|
||||
bool blocking) {
|
||||
Context *neoContext = nullptr;
|
||||
auto retVal = validateObjects(withCastToInternal(context, &neoContext));
|
||||
|
||||
@@ -3988,19 +3988,19 @@ cl_int clMemFreeCommon(cl_context context,
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
cl_int clMemFreeINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clMemFreeINTEL(
|
||||
cl_context context,
|
||||
void *ptr) {
|
||||
return clMemFreeCommon(context, ptr, false);
|
||||
}
|
||||
|
||||
cl_int clMemBlockingFreeINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clMemBlockingFreeINTEL(
|
||||
cl_context context,
|
||||
void *ptr) {
|
||||
return clMemFreeCommon(context, ptr, true);
|
||||
}
|
||||
|
||||
cl_int clGetMemAllocInfoINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clGetMemAllocInfoINTEL(
|
||||
cl_context context,
|
||||
const void *ptr,
|
||||
cl_mem_info_intel paramName,
|
||||
@@ -4073,14 +4073,14 @@ cl_int clGetMemAllocInfoINTEL(
|
||||
return CL_INVALID_VALUE;
|
||||
}
|
||||
|
||||
cl_int clSetKernelArgMemPointerINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clSetKernelArgMemPointerINTEL(
|
||||
cl_kernel kernel,
|
||||
cl_uint argIndex,
|
||||
const void *argValue) {
|
||||
return clSetKernelArgSVMPointer(kernel, argIndex, argValue);
|
||||
}
|
||||
|
||||
cl_int clEnqueueMemsetINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemsetINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
void *dstPtr,
|
||||
cl_int value,
|
||||
@@ -4104,7 +4104,7 @@ cl_int clEnqueueMemsetINTEL(
|
||||
return retVal;
|
||||
}
|
||||
|
||||
cl_int clEnqueueMemFillINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemFillINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
void *dstPtr,
|
||||
const void *pattern,
|
||||
@@ -4130,7 +4130,7 @@ cl_int clEnqueueMemFillINTEL(
|
||||
return retVal;
|
||||
}
|
||||
|
||||
cl_int clEnqueueMemcpyINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemcpyINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
cl_bool blocking,
|
||||
void *dstPtr,
|
||||
@@ -4155,7 +4155,7 @@ cl_int clEnqueueMemcpyINTEL(
|
||||
return retVal;
|
||||
}
|
||||
|
||||
cl_int clEnqueueMigrateMemINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMigrateMemINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
const void *ptr,
|
||||
size_t size,
|
||||
@@ -4180,7 +4180,7 @@ cl_int clEnqueueMigrateMemINTEL(
|
||||
return retVal;
|
||||
}
|
||||
|
||||
cl_int clEnqueueMemAdviseINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemAdviseINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
const void *ptr,
|
||||
size_t size,
|
||||
|
||||
@@ -921,7 +921,7 @@ extern CL_API_ENTRY cl_event CL_API_CALL
|
||||
clCreateEventFromGLsyncKHR(
|
||||
cl_context context,
|
||||
cl_GLsync sync,
|
||||
cl_int *errcodeRet) CL_EXT_SUFFIX__VERSION_1_2;
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_2;
|
||||
|
||||
extern CL_API_ENTRY cl_program CL_API_CALL clCreateProgramWithILKHR(
|
||||
cl_context context,
|
||||
@@ -937,14 +937,14 @@ extern CL_API_ENTRY cl_int CL_API_CALL clGetKernelSuggestedLocalWorkSizeKHR(
|
||||
const size_t *globalWorkSize,
|
||||
size_t *suggestedLocalWorkSize) CL_API_SUFFIX__VERSION_3_0;
|
||||
|
||||
void *clHostMemAllocINTEL(
|
||||
CL_API_ENTRY void *CL_API_CALL clHostMemAllocINTEL(
|
||||
cl_context context,
|
||||
const cl_mem_properties_intel *properties,
|
||||
size_t size,
|
||||
cl_uint alignment,
|
||||
cl_int *errcodeRet);
|
||||
|
||||
void *clDeviceMemAllocINTEL(
|
||||
CL_API_ENTRY void *CL_API_CALL clDeviceMemAllocINTEL(
|
||||
cl_context context,
|
||||
cl_device_id device,
|
||||
const cl_mem_properties_intel *properties,
|
||||
@@ -952,7 +952,7 @@ void *clDeviceMemAllocINTEL(
|
||||
cl_uint alignment,
|
||||
cl_int *errcodeRet);
|
||||
|
||||
void *clSharedMemAllocINTEL(
|
||||
CL_API_ENTRY void *CL_API_CALL clSharedMemAllocINTEL(
|
||||
cl_context context,
|
||||
cl_device_id device,
|
||||
const cl_mem_properties_intel *properties,
|
||||
@@ -960,15 +960,15 @@ void *clSharedMemAllocINTEL(
|
||||
cl_uint alignment,
|
||||
cl_int *errcodeRet);
|
||||
|
||||
cl_int clMemFreeINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clMemFreeINTEL(
|
||||
cl_context context,
|
||||
void *ptr);
|
||||
|
||||
cl_int clMemBlockingFreeINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clMemBlockingFreeINTEL(
|
||||
cl_context context,
|
||||
void *ptr);
|
||||
|
||||
cl_int clGetMemAllocInfoINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clGetMemAllocInfoINTEL(
|
||||
cl_context context,
|
||||
const void *ptr,
|
||||
cl_mem_info_intel paramName,
|
||||
@@ -976,12 +976,12 @@ cl_int clGetMemAllocInfoINTEL(
|
||||
void *paramValue,
|
||||
size_t *paramValueSizeRet);
|
||||
|
||||
cl_int clSetKernelArgMemPointerINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clSetKernelArgMemPointerINTEL(
|
||||
cl_kernel kernel,
|
||||
cl_uint argIndex,
|
||||
const void *argValue);
|
||||
|
||||
cl_int clEnqueueMemsetINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemsetINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
void *dstPtr,
|
||||
cl_int value,
|
||||
@@ -990,7 +990,7 @@ cl_int clEnqueueMemsetINTEL(
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event);
|
||||
|
||||
cl_int clEnqueueMemFillINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemFillINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
void *dstPtr,
|
||||
const void *pattern,
|
||||
@@ -1000,7 +1000,7 @@ cl_int clEnqueueMemFillINTEL(
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event);
|
||||
|
||||
cl_int clEnqueueMemcpyINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemcpyINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
cl_bool blocking,
|
||||
void *dstPtr,
|
||||
@@ -1010,7 +1010,7 @@ cl_int clEnqueueMemcpyINTEL(
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event);
|
||||
|
||||
cl_int clEnqueueMigrateMemINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMigrateMemINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
const void *ptr,
|
||||
size_t size,
|
||||
@@ -1019,7 +1019,7 @@ cl_int clEnqueueMigrateMemINTEL(
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event);
|
||||
|
||||
cl_int clEnqueueMemAdviseINTEL(
|
||||
CL_API_ENTRY cl_int CL_API_CALL clEnqueueMemAdviseINTEL(
|
||||
cl_command_queue commandQueue,
|
||||
const void *ptr,
|
||||
size_t size,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -9,9 +9,7 @@
|
||||
|
||||
#include "CL/cl.h"
|
||||
#include "CL/cl_ext.h"
|
||||
#include "CL/cl_ext_intel.h"
|
||||
#include "CL/cl_gl.h"
|
||||
#include "CL/cl_gl_ext.h"
|
||||
#if defined(_WIN32)
|
||||
#include <d3d10_1.h>
|
||||
|
||||
@@ -21,7 +19,7 @@
|
||||
#define CL_DX9_MEDIA_SHARING_INTEL_EXT
|
||||
#include "shared/source/os_interface/windows/windows_wrapper.h"
|
||||
|
||||
#include "CL/cl_dx9_media_sharing_intel.h"
|
||||
#include "CL/cl_dx9_media_sharing.h"
|
||||
#else
|
||||
#define CL_CONTEXT_D3D10_DEVICE_KHR 0x4014
|
||||
#define CL_CONTEXT_D3D10_PREFER_SHARED_RESOURCES_KHR 0x402C
|
||||
@@ -149,7 +147,7 @@ typedef CL_API_ENTRY cl_mem(CL_API_CALL *KHRpfn_clCreateBuffer)(
|
||||
void *hostPtr,
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_0;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_mem(CL_API_CALL *KHRpfn_clCreateImage2D)(
|
||||
cl_context context,
|
||||
cl_mem_flags flags,
|
||||
@@ -158,9 +156,9 @@ cl_mem(CL_API_CALL *KHRpfn_clCreateImage2D)(
|
||||
size_t imageHeight,
|
||||
size_t imageRowPitch,
|
||||
void *hostPtr,
|
||||
cl_int *errcodeRet) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_mem(CL_API_CALL *KHRpfn_clCreateImage3D)(
|
||||
cl_context context,
|
||||
cl_mem_flags flags,
|
||||
@@ -171,7 +169,7 @@ cl_mem(CL_API_CALL *KHRpfn_clCreateImage3D)(
|
||||
size_t imageRowPitch,
|
||||
size_t imageSlicePitch,
|
||||
void *hostPtr,
|
||||
cl_int *errcodeRet) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY cl_int(CL_API_CALL *KHRpfn_clRetainMemObject)(
|
||||
cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
|
||||
@@ -273,8 +271,8 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *KHRpfn_clBuildProgram)(
|
||||
prog_logging_fn funcNotify,
|
||||
void *userData) CL_API_SUFFIX__VERSION_1_0;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_int(CL_API_CALL *KHRpfn_clUnloadCompiler)() CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_int(CL_API_CALL *KHRpfn_clUnloadCompiler)() CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY cl_int(CL_API_CALL *KHRpfn_clGetProgramInfo)(
|
||||
cl_program program,
|
||||
@@ -520,23 +518,23 @@ typedef CL_API_ENTRY cl_int(CL_API_CALL *KHRpfn_clEnqueueNativeKernel)(
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event) CL_API_SUFFIX__VERSION_1_0;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_int(CL_API_CALL *KHRpfn_clEnqueueMarker)(
|
||||
cl_command_queue commandQueue,
|
||||
cl_event *event) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
cl_event *event) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_int(CL_API_CALL *KHRpfn_clEnqueueWaitForEvents)(
|
||||
cl_command_queue commandQueue,
|
||||
cl_uint numEvents,
|
||||
const cl_event *eventList) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
const cl_event *eventList) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED
|
||||
cl_int(CL_API_CALL *KHRpfn_clEnqueueBarrier)(
|
||||
cl_command_queue commandQueue) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
cl_command_queue commandQueue) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED void *(CL_API_CALL *KHRpfn_clGetExtensionFunctionAddress)(
|
||||
const char *functionName)CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED void *(CL_API_CALL *KHRpfn_clGetExtensionFunctionAddress)(
|
||||
const char *functionName)CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLBuffer)(
|
||||
cl_context context,
|
||||
@@ -552,21 +550,21 @@ typedef CL_API_ENTRY cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLTexture)(
|
||||
cl_GLuint texture,
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_2;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLTexture2D)(
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLTexture2D)(
|
||||
cl_context context,
|
||||
cl_mem_flags flags,
|
||||
cl_GLenum textureTarget,
|
||||
cl_GLint miplevel,
|
||||
cl_GLuint texture,
|
||||
cl_int *errcodeRet) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLTexture3D)(
|
||||
typedef CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLTexture3D)(
|
||||
cl_context context,
|
||||
cl_mem_flags flags,
|
||||
cl_GLenum textureTarget,
|
||||
cl_GLint miplevel,
|
||||
cl_GLuint texture,
|
||||
cl_int *errcodeRet) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
cl_int *errcodeRet) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
||||
|
||||
typedef CL_API_ENTRY cl_mem(CL_API_CALL *KHRpfn_clCreateFromGLRenderbuffer)(
|
||||
cl_context context,
|
||||
|
||||
Reference in New Issue
Block a user