mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 05:52:19 +08:00
build: update opencl headers to v2025.07.22
Related-To: NEO-16924, GSD-12035 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e09942c248
commit
516b9444be
2
third_party/opencl_headers/.version
vendored
2
third_party/opencl_headers/.version
vendored
@@ -1,2 +1,2 @@
|
||||
git_url: https://github.com/KhronosGroup/OpenCL-Headers
|
||||
git_revision: v2024.10.24
|
||||
git_revision: v2025.07.22
|
||||
|
||||
41
third_party/opencl_headers/CL/cl.h
vendored
41
third_party/opencl_headers/CL/cl.h
vendored
@@ -24,6 +24,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && defined(_MSC_VER) && __CL_HAS_ANON_STRUCT__
|
||||
/* Disable warning C4201: nonstandard extension used : nameless struct/union */
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4201 )
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
typedef struct _cl_platform_id * cl_platform_id;
|
||||
@@ -133,39 +139,14 @@ typedef struct _cl_image_desc {
|
||||
size_t image_slice_pitch;
|
||||
cl_uint num_mip_levels;
|
||||
cl_uint num_samples;
|
||||
#ifdef CL_VERSION_2_0
|
||||
#if defined(__GNUC__)
|
||||
__extension__ /* Prevents warnings about anonymous union in -pedantic builds */
|
||||
#endif
|
||||
#if defined(_MSC_VER) && !defined(__STDC__)
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4201 ) /* Prevents warning about nameless struct/union in /W4 builds */
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wc11-extensions" /* Prevents warning about nameless union being C11 extension*/
|
||||
#endif
|
||||
#if defined(_MSC_VER) && defined(__STDC__)
|
||||
/* Anonymous unions are not supported in /Za builds */
|
||||
#else
|
||||
union {
|
||||
#endif
|
||||
#if defined(CL_VERSION_2_0) && __CL_HAS_ANON_STRUCT__
|
||||
__CL_ANON_STRUCT__ union {
|
||||
#endif
|
||||
cl_mem buffer;
|
||||
#ifdef CL_VERSION_2_0
|
||||
#if defined(_MSC_VER) && defined(__STDC__)
|
||||
/* Anonymous unions are not supported in /Za builds */
|
||||
#else
|
||||
#if defined(CL_VERSION_2_0) && __CL_HAS_ANON_STRUCT__
|
||||
cl_mem mem_object;
|
||||
};
|
||||
#endif
|
||||
#if defined(_MSC_VER) && !defined(__STDC__)
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#endif
|
||||
} cl_image_desc;
|
||||
|
||||
#endif
|
||||
@@ -1932,4 +1913,8 @@ clEnqueueTask(cl_command_queue command_queue,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && defined(_MSC_VER) && __CL_HAS_ANON_STRUCT__
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
|
||||
#endif /* __OPENCL_CL_H */
|
||||
|
||||
228
third_party/opencl_headers/CL/cl_ext.h
vendored
228
third_party/opencl_headers/CL/cl_ext.h
vendored
@@ -45,14 +45,16 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_command_buffer
|
||||
* cl_khr_command_buffer (beta)
|
||||
***************************************************************/
|
||||
#if defined(CL_ENABLE_BETA_EXTENSIONS)
|
||||
|
||||
#define cl_khr_command_buffer 1
|
||||
#define CL_KHR_COMMAND_BUFFER_EXTENSION_NAME \
|
||||
"cl_khr_command_buffer"
|
||||
|
||||
|
||||
#define CL_KHR_COMMAND_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 5)
|
||||
#define CL_KHR_COMMAND_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 7)
|
||||
|
||||
typedef cl_bitfield cl_device_command_buffer_capabilities_khr;
|
||||
typedef struct _cl_command_buffer_khr* cl_command_buffer_khr;
|
||||
@@ -66,13 +68,13 @@ typedef struct _cl_mutable_command_khr* cl_mutable_command_khr;
|
||||
|
||||
/* cl_device_info */
|
||||
#define CL_DEVICE_COMMAND_BUFFER_CAPABILITIES_KHR 0x12A9
|
||||
#define CL_DEVICE_COMMAND_BUFFER_SUPPORTED_QUEUE_PROPERTIES_KHR 0x129A
|
||||
#define CL_DEVICE_COMMAND_BUFFER_REQUIRED_QUEUE_PROPERTIES_KHR 0x12AA
|
||||
|
||||
/* cl_device_command_buffer_capabilities_khr - bitfield */
|
||||
#define CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR (1 << 0)
|
||||
#define CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR (1 << 1)
|
||||
#define CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR (1 << 2)
|
||||
#define CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR (1 << 3)
|
||||
|
||||
/* cl_command_buffer_properties_khr */
|
||||
#define CL_COMMAND_BUFFER_FLAGS_KHR 0x1293
|
||||
@@ -555,15 +557,19 @@ clCommandSVMMemFillKHR(
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_command_buffer_multi_device
|
||||
* cl_khr_command_buffer_multi_device (beta)
|
||||
***************************************************************/
|
||||
#if defined(CL_ENABLE_BETA_EXTENSIONS)
|
||||
|
||||
#define cl_khr_command_buffer_multi_device 1
|
||||
#define CL_KHR_COMMAND_BUFFER_MULTI_DEVICE_EXTENSION_NAME \
|
||||
"cl_khr_command_buffer_multi_device"
|
||||
|
||||
|
||||
#define CL_KHR_COMMAND_BUFFER_MULTI_DEVICE_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 1)
|
||||
#define CL_KHR_COMMAND_BUFFER_MULTI_DEVICE_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 2)
|
||||
|
||||
typedef cl_bitfield cl_platform_command_buffer_capabilities_khr;
|
||||
|
||||
@@ -615,9 +621,13 @@ clRemapCommandBufferKHR(
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_command_buffer_mutable_dispatch
|
||||
* cl_khr_command_buffer_mutable_dispatch (beta)
|
||||
***************************************************************/
|
||||
#if defined(CL_ENABLE_BETA_EXTENSIONS)
|
||||
|
||||
#define cl_khr_command_buffer_mutable_dispatch 1
|
||||
#define CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_NAME \
|
||||
"cl_khr_command_buffer_mutable_dispatch"
|
||||
@@ -736,6 +746,8 @@ clGetMutableCommandInfoKHR(
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_fp64
|
||||
***************************************************************/
|
||||
@@ -869,7 +881,7 @@ clLogMessagesToStderrAPPLE(
|
||||
"cl_khr_icd"
|
||||
|
||||
|
||||
#define CL_KHR_ICD_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
#define CL_KHR_ICD_EXTENSION_VERSION CL_MAKE_VERSION(2, 0, 0)
|
||||
|
||||
/* cl_platform_info */
|
||||
#define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920
|
||||
@@ -877,6 +889,13 @@ clLogMessagesToStderrAPPLE(
|
||||
/* Error codes */
|
||||
#define CL_PLATFORM_NOT_FOUND_KHR -1001
|
||||
|
||||
/* ICD 2 tag value */
|
||||
#if INTPTR_MAX == INT32_MAX
|
||||
#define CL_ICD2_TAG_KHR ((intptr_t)0x434C3331)
|
||||
#else
|
||||
#define CL_ICD2_TAG_KHR ((intptr_t)0x4F50454E434C3331)
|
||||
#endif
|
||||
|
||||
|
||||
typedef cl_int CL_API_CALL
|
||||
clIcdGetPlatformIDsKHR_t(
|
||||
@@ -887,6 +906,22 @@ clIcdGetPlatformIDsKHR_t(
|
||||
typedef clIcdGetPlatformIDsKHR_t *
|
||||
clIcdGetPlatformIDsKHR_fn ;
|
||||
|
||||
typedef void* CL_API_CALL
|
||||
clIcdGetFunctionAddressForPlatformKHR_t(
|
||||
cl_platform_id platform,
|
||||
const char* func_name);
|
||||
|
||||
typedef clIcdGetFunctionAddressForPlatformKHR_t *
|
||||
clIcdGetFunctionAddressForPlatformKHR_fn ;
|
||||
|
||||
typedef cl_int CL_API_CALL
|
||||
clIcdSetPlatformDispatchDataKHR_t(
|
||||
cl_platform_id platform,
|
||||
void* dispatch_data);
|
||||
|
||||
typedef clIcdSetPlatformDispatchDataKHR_t *
|
||||
clIcdSetPlatformDispatchDataKHR_fn ;
|
||||
|
||||
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL
|
||||
@@ -895,6 +930,16 @@ clIcdGetPlatformIDsKHR(
|
||||
cl_platform_id* platforms,
|
||||
cl_uint* num_platforms) ;
|
||||
|
||||
extern CL_API_ENTRY void* CL_API_CALL
|
||||
clIcdGetFunctionAddressForPlatformKHR(
|
||||
cl_platform_id platform,
|
||||
const char* func_name) ;
|
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL
|
||||
clIcdSetPlatformDispatchDataKHR(
|
||||
cl_platform_id platform,
|
||||
void* dispatch_data) ;
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
/***************************************************************
|
||||
@@ -1999,6 +2044,23 @@ clGetSemaphoreHandleForTypeKHR(
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_external_semaphore_dx_fence (beta)
|
||||
***************************************************************/
|
||||
#if defined(CL_ENABLE_BETA_EXTENSIONS)
|
||||
|
||||
#define cl_khr_external_semaphore_dx_fence 1
|
||||
#define CL_KHR_EXTERNAL_SEMAPHORE_DX_FENCE_EXTENSION_NAME \
|
||||
"cl_khr_external_semaphore_dx_fence"
|
||||
|
||||
|
||||
#define CL_KHR_EXTERNAL_SEMAPHORE_DX_FENCE_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 0)
|
||||
|
||||
/* cl_external_semaphore_handle_type_khr */
|
||||
#define CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR 0x2059
|
||||
|
||||
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_external_semaphore_opaque_fd
|
||||
***************************************************************/
|
||||
@@ -2048,8 +2110,10 @@ clReImportSemaphoreSyncFdKHR(
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_external_semaphore_win32
|
||||
* cl_khr_external_semaphore_win32 (beta)
|
||||
***************************************************************/
|
||||
#if defined(CL_ENABLE_BETA_EXTENSIONS)
|
||||
|
||||
#define cl_khr_external_semaphore_win32 1
|
||||
#define CL_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME \
|
||||
"cl_khr_external_semaphore_win32"
|
||||
@@ -2062,6 +2126,8 @@ clReImportSemaphoreSyncFdKHR(
|
||||
#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_KMT_KHR 0x2057
|
||||
#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_NAME_KHR 0x2068
|
||||
|
||||
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_semaphore
|
||||
***************************************************************/
|
||||
@@ -3120,7 +3186,7 @@ typedef cl_bitfield cl_diagnostic_verbose_level_intel;
|
||||
"cl_intel_unified_shared_memory"
|
||||
|
||||
|
||||
#define CL_INTEL_UNIFIED_SHARED_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0)
|
||||
#define CL_INTEL_UNIFIED_SHARED_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(1, 1, 0)
|
||||
|
||||
typedef cl_bitfield cl_device_unified_shared_memory_capabilities_intel;
|
||||
typedef cl_properties cl_mem_properties_intel;
|
||||
@@ -3946,6 +4012,23 @@ clSetContentSizeBufferPoCL(
|
||||
|
||||
#define CL_KHR_EXTENDED_BIT_OPS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_external_memory_android_hardware_buffer (beta)
|
||||
***************************************************************/
|
||||
#if defined(CL_ENABLE_BETA_EXTENSIONS)
|
||||
|
||||
#define cl_khr_external_memory_android_hardware_buffer 1
|
||||
#define CL_KHR_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME \
|
||||
"cl_khr_external_memory_android_hardware_buffer"
|
||||
|
||||
|
||||
#define CL_KHR_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 2)
|
||||
|
||||
/* cl_external_memory_handle_type_khr */
|
||||
#define CL_EXTERNAL_MEMORY_HANDLE_ANDROID_HARDWARE_BUFFER_KHR 0x2070
|
||||
|
||||
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_global_int32_base_atomics
|
||||
***************************************************************/
|
||||
@@ -3994,7 +4077,7 @@ clSetContentSizeBufferPoCL(
|
||||
"cl_khr_kernel_clock"
|
||||
|
||||
|
||||
#define CL_KHR_KERNEL_CLOCK_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 0)
|
||||
#define CL_KHR_KERNEL_CLOCK_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/* cl_device_info */
|
||||
#define CL_DEVICE_KERNEL_CLOCK_CAPABILITIES_KHR 0x1076
|
||||
@@ -4076,6 +4159,21 @@ typedef cl_bitfield cl_device_kernel_clock_capabilities_khr;
|
||||
|
||||
#define CL_KHR_SPIRV_NO_INTEGER_WRAP_DECORATION_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_spirv_queries
|
||||
***************************************************************/
|
||||
#define cl_khr_spirv_queries 1
|
||||
#define CL_KHR_SPIRV_QUERIES_EXTENSION_NAME \
|
||||
"cl_khr_spirv_queries"
|
||||
|
||||
|
||||
#define CL_KHR_SPIRV_QUERIES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/* cl_device_info */
|
||||
#define CL_DEVICE_SPIRV_EXTENDED_INSTRUCTION_SETS_KHR 0x12B9
|
||||
#define CL_DEVICE_SPIRV_EXTENSIONS_KHR 0x12BA
|
||||
#define CL_DEVICE_SPIRV_CAPABILITIES_KHR 0x12BB
|
||||
|
||||
/***************************************************************
|
||||
* cl_khr_srgb_image_writes
|
||||
***************************************************************/
|
||||
@@ -4176,6 +4274,47 @@ typedef cl_bitfield cl_device_kernel_clock_capabilities_khr;
|
||||
|
||||
#define CL_KHR_WORK_GROUP_UNIFORM_ARITHMETIC_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/***************************************************************
|
||||
* cl_ext_buffer_device_address
|
||||
***************************************************************/
|
||||
#define cl_ext_buffer_device_address 1
|
||||
#define CL_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME \
|
||||
"cl_ext_buffer_device_address"
|
||||
|
||||
|
||||
#define CL_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 2)
|
||||
|
||||
typedef cl_ulong cl_mem_device_address_ext;
|
||||
|
||||
|
||||
typedef cl_int CL_API_CALL
|
||||
clSetKernelArgDevicePointerEXT_t(
|
||||
cl_kernel kernel,
|
||||
cl_uint arg_index,
|
||||
cl_mem_device_address_ext arg_value);
|
||||
|
||||
typedef clSetKernelArgDevicePointerEXT_t *
|
||||
clSetKernelArgDevicePointerEXT_fn CL_API_SUFFIX__VERSION_3_0;
|
||||
|
||||
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL
|
||||
clSetKernelArgDevicePointerEXT(
|
||||
cl_kernel kernel,
|
||||
cl_uint arg_index,
|
||||
cl_mem_device_address_ext arg_value) CL_API_SUFFIX__VERSION_3_0;
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
/* cl_mem_properties */
|
||||
#define CL_MEM_DEVICE_PRIVATE_ADDRESS_EXT 0x5000
|
||||
|
||||
/* cl_mem_info */
|
||||
#define CL_MEM_DEVICE_ADDRESS_EXT 0x5001
|
||||
|
||||
/* cl_kernel_exec_info */
|
||||
#define CL_KERNEL_EXEC_INFO_DEVICE_PTRS_EXT 0x5002
|
||||
|
||||
/***************************************************************
|
||||
* cl_ext_image_unorm_int_2_101010
|
||||
***************************************************************/
|
||||
@@ -4189,6 +4328,37 @@ typedef cl_bitfield cl_device_kernel_clock_capabilities_khr;
|
||||
/* cl_channel_type */
|
||||
#define CL_UNORM_INT_2_101010_EXT 0x10E5
|
||||
|
||||
/***************************************************************
|
||||
* cl_ext_image_unsigned_10x6_12x4_14x2
|
||||
***************************************************************/
|
||||
#define cl_ext_image_unsigned_10x6_12x4_14x2 1
|
||||
#define CL_EXT_IMAGE_UNSIGNED_10X6_12X4_14X2_EXTENSION_NAME \
|
||||
"cl_ext_image_unsigned_10x6_12x4_14x2"
|
||||
|
||||
|
||||
#define CL_EXT_IMAGE_UNSIGNED_10X6_12X4_14X2_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/* cl_channel_type */
|
||||
#define CL_UNSIGNED_INT10X6_EXT 0x10E6
|
||||
#define CL_UNSIGNED_INT12X4_EXT 0x10E7
|
||||
#define CL_UNSIGNED_INT14X2_EXT 0x10E8
|
||||
#define CL_UNORM_INT10X6_EXT 0x10E1
|
||||
#define CL_UNORM_INT12X4_EXT 0x10E9
|
||||
#define CL_UNORM_INT14X2_EXT 0x10EA
|
||||
|
||||
/***************************************************************
|
||||
* cl_ext_immutable_memory_objects
|
||||
***************************************************************/
|
||||
#define cl_ext_immutable_memory_objects 1
|
||||
#define CL_EXT_IMMUTABLE_MEMORY_OBJECTS_EXTENSION_NAME \
|
||||
"cl_ext_immutable_memory_objects"
|
||||
|
||||
|
||||
#define CL_EXT_IMMUTABLE_MEMORY_OBJECTS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
|
||||
|
||||
/* cl_mem_flags */
|
||||
#define CL_MEM_IMMUTABLE_EXT (1 << 6)
|
||||
|
||||
/***************************************************************
|
||||
* cl_img_cancel_command
|
||||
***************************************************************/
|
||||
@@ -4220,6 +4390,44 @@ clCancelCommandsIMG(
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
/***************************************************************
|
||||
* cl_qcom_perf_hint
|
||||
***************************************************************/
|
||||
#define cl_qcom_perf_hint 1
|
||||
#define CL_QCOM_PERF_HINT_EXTENSION_NAME \
|
||||
"cl_qcom_perf_hint"
|
||||
|
||||
|
||||
#define CL_QCOM_PERF_HINT_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 5)
|
||||
|
||||
typedef cl_uint cl_perf_hint_qcom;
|
||||
|
||||
/* cl_perf_hint_qcom */
|
||||
#define CL_PERF_HINT_HIGH_QCOM 0x40C3
|
||||
#define CL_PERF_HINT_NORMAL_QCOM 0x40C4
|
||||
#define CL_PERF_HINT_LOW_QCOM 0x40C5
|
||||
|
||||
/* cl_context_info */
|
||||
#define CL_CONTEXT_PERF_HINT_QCOM 0x40C2
|
||||
|
||||
|
||||
typedef cl_int CL_API_CALL
|
||||
clSetPerfHintQCOM_t(
|
||||
cl_context context,
|
||||
cl_perf_hint_qcom perf_hint);
|
||||
|
||||
typedef clSetPerfHintQCOM_t *
|
||||
clSetPerfHintQCOM_fn ;
|
||||
|
||||
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
||||
|
||||
extern CL_API_ENTRY cl_int CL_API_CALL
|
||||
clSetPerfHintQCOM(
|
||||
cl_context context,
|
||||
cl_perf_hint_qcom perf_hint) ;
|
||||
|
||||
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
21
third_party/opencl_headers/README.md
vendored
21
third_party/opencl_headers/README.md
vendored
@@ -107,7 +107,7 @@ break backward compatibility:
|
||||
|
||||
* Very rarely, there may be bugs or other issues in the OpenCL API headers that
|
||||
cannot be fixed without breaking compatibility.
|
||||
* The OpenCL API headers for provisional features or provisional extensions may
|
||||
* The OpenCL API headers for beta features or beta extensions may
|
||||
be changed in a way that breaks compatibility.
|
||||
|
||||
Applications or libraries that require stable OpenCL API headers are encouraged
|
||||
@@ -115,12 +115,31 @@ to use tagged or released OpenCL API headers. We will do our best to document
|
||||
any breaking changes in the description of each release. The OpenCL API headers
|
||||
are tagged at least as often as each OpenCL specification release.
|
||||
|
||||
## Beta Extensions
|
||||
|
||||
Beta extensions are extensions that are still in development and are
|
||||
hence subject to change. To further improve compatibility for applications that
|
||||
do not use beta features, support for beta extensions must be
|
||||
explicitly enabled. Support for beta extensions is controlled by the
|
||||
`CL_ENABLE_BETA_EXTENSIONS` preprocessor define.
|
||||
|
||||
For example, to enable support for OpenCL 3.0 APIs and all extensions, including
|
||||
beta extensions, you may include the OpenCL API headers as follows:
|
||||
|
||||
```c
|
||||
#define CL_TARGET_OPENCL_VERSION 300
|
||||
#define CL_ENABLE_BETA_EXTENSIONS
|
||||
#include <CL/opencl.h>
|
||||
```
|
||||
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
README.md This file
|
||||
LICENSE Source license for the OpenCL API headers
|
||||
CL/ Unified OpenCL API headers tree
|
||||
scripts/ Scripts for generating OpenCL extension headers
|
||||
tests/ OpenCL API header tests
|
||||
```
|
||||
|
||||
## Packaging
|
||||
|
||||
Reference in New Issue
Block a user