1f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/******************************************************************************* 2f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Copyright (c) 2008-2010 The Khronos Group Inc. 3f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 4f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Permission is hereby granted, free of charge, to any person obtaining a 5f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * copy of this software and/or associated documentation files (the 6f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * "Materials"), to deal in the Materials without restriction, including 7f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * without limitation the rights to use, copy, modify, merge, publish, 8f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * distribute, sublicense, and/or sell copies of the Materials, and to 9f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * permit persons to whom the Materials are furnished to do so, subject to 10f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * the following conditions: 11f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 12f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * The above copyright notice and this permission notice shall be included 13f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * in all copies or substantial portions of the Materials. 14f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 15f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org ******************************************************************************/ 23f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 24f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* $Revision: 11928 $ on $Date: 2010-07-13 09:04:56 -0700 (Tue, 13 Jul 2010) $ */ 25f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 26f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* cl_ext.h contains OpenCL extensions which don't have external */ 27f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* (OpenGL, D3D) dependencies. */ 28f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 29f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifndef __CL_EXT_H 30f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define __CL_EXT_H 31f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 32f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifdef __cplusplus 33f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern "C" { 34f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif 35f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 36f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifdef __APPLE__ 37f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #include <OpenCL/cl.h> 38f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #include <AvailabilityMacros.h> 39f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#else 40f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #include <CL/cl.h> 41f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif 42f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 43f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* cl_khr_fp64 extension - no extension #define since it has no functions */ 44f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032 45f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 46f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* cl_khr_fp16 extension - no extension #define since it has no functions */ 47f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_HALF_FP_CONFIG 0x1033 48f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 49f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Memory object destruction 50f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 51f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Apple extension for use to manage externally allocated buffers used with cl_mem objects with CL_MEM_USE_HOST_PTR 52f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 53f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Registers a user callback function that will be called when the memory object is deleted and its resources 54f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * freed. Each call to clSetMemObjectCallbackFn registers the specified user callback function on a callback 55f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * stack associated with memobj. The registered user callback functions are called in the reverse order in 56f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * which they were registered. The user callback functions are called and then the memory object is deleted 57f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * and its resources freed. This provides a mechanism for the application (and libraries) using memobj to be 58f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * notified when the memory referenced by host_ptr, specified when the memory object is created and used as 59f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * the storage bits for the memory object, can be reused or freed. 60f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 61f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * The application may not call CL api's with the cl_mem object passed to the pfn_notify. 62f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 63f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Please check for the "cl_APPLE_SetMemObjectDestructor" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS) 64f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * before using. 65f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */ 66f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define cl_APPLE_SetMemObjectDestructor 1 67f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgcl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE( cl_mem /* memobj */, 68f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org void (* /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/), 69f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org void * /*user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; 70f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 71f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 72f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Context Logging Functions 73f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 74f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * The next three convenience functions are intended to be used as the pfn_notify parameter to clCreateContext(). 75f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Please check for the "cl_APPLE_ContextLoggingFunctions" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS) 76f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * before using. 77f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * 78f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * clLogMessagesToSystemLog fowards on all log messages to the Apple System Logger 79f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */ 80f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define cl_APPLE_ContextLoggingFunctions 1 81f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void CL_API_ENTRY clLogMessagesToSystemLogAPPLE( const char * /* errstr */, 82f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const void * /* private_info */, 83f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org size_t /* cb */, 84f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; 85f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 86f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* clLogMessagesToStdout sends all log messages to the file descriptor stdout */ 87f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void CL_API_ENTRY clLogMessagesToStdoutAPPLE( const char * /* errstr */, 88f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const void * /* private_info */, 89f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org size_t /* cb */, 90f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; 91f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 92f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* clLogMessagesToStderr sends all log messages to the file descriptor stderr */ 93f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern void CL_API_ENTRY clLogMessagesToStderrAPPLE( const char * /* errstr */, 94f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const void * /* private_info */, 95f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org size_t /* cb */, 96f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org void * /* user_data */ ) CL_EXT_SUFFIX__VERSION_1_0; 97f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 98f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 99f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/************************ 100f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org* cl_khr_icd extension * 101f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org************************/ 102f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define cl_khr_icd 1 103f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 104f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* cl_platform_info */ 105f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920 106f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 107f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* Additional Error Codes */ 108f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_PLATFORM_NOT_FOUND_KHR -1001 109f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 110f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgextern CL_API_ENTRY cl_int CL_API_CALL 111f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgclIcdGetPlatformIDsKHR(cl_uint /* num_entries */, 112f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_platform_id * /* platforms */, 113f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint * /* num_platforms */); 114f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 115f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgtypedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)( 116f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint /* num_entries */, 117f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_platform_id * /* platforms */, 118f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint * /* num_platforms */); 119f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 120f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 121f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/****************************************** 122f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org* cl_nv_device_attribute_query extension * 123f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org******************************************/ 124f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/* cl_nv_device_attribute_query extension - no extension #define since it has no functions */ 125f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000 126f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001 127f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002 128f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_WARP_SIZE_NV 0x4003 129f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_GPU_OVERLAP_NV 0x4004 130f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005 131f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006 132f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 133f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 134f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/********************************* 135f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org* cl_amd_device_attribute_query * 136f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org*********************************/ 137f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036 138f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 139f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 140f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifdef CL_VERSION_1_1 141f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org /*********************************** 142f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * cl_ext_device_fission extension * 143f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org ***********************************/ 144f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define cl_ext_device_fission 1 145f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 146f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org extern CL_API_ENTRY cl_int CL_API_CALL 147f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org clReleaseDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1; 148f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 149f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org typedef CL_API_ENTRY cl_int 150f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org (CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1; 151f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 152f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org extern CL_API_ENTRY cl_int CL_API_CALL 153f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1; 154f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 155f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org typedef CL_API_ENTRY cl_int 156f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org (CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1; 157f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 158f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org typedef cl_ulong cl_device_partition_property_ext; 159f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org extern CL_API_ENTRY cl_int CL_API_CALL 160f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org clCreateSubDevicesEXT( cl_device_id /*in_device*/, 161f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const cl_device_partition_property_ext * /* properties */, 162f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint /*num_entries*/, 163f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_device_id * /*out_devices*/, 164f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1; 165f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 166f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org typedef CL_API_ENTRY cl_int 167f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org ( CL_API_CALL * clCreateSubDevicesEXT_fn)( cl_device_id /*in_device*/, 168f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const cl_device_partition_property_ext * /* properties */, 169f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint /*num_entries*/, 170f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_device_id * /*out_devices*/, 171f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1; 172f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 173f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org /* cl_device_partition_property_ext */ 174f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050 175f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_BY_COUNTS_EXT 0x4051 176f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_BY_NAMES_EXT 0x4052 177f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT 0x4053 178f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 179f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org /* clDeviceGetInfo selectors */ 180f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARENT_DEVICE_EXT 0x4054 181f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_TYPES_EXT 0x4055 182f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_AFFINITY_DOMAINS_EXT 0x4056 183f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_REFERENCE_COUNT_EXT 0x4057 184f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_STYLE_EXT 0x4058 185f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 186f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org /* error codes */ 187f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_DEVICE_PARTITION_FAILED_EXT -1057 188f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_INVALID_PARTITION_COUNT_EXT -1058 189f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_INVALID_PARTITION_NAME_EXT -1059 190f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 191f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org /* CL_AFFINITY_DOMAINs */ 192f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_AFFINITY_DOMAIN_L1_CACHE_EXT 0x1 193f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_AFFINITY_DOMAIN_L2_CACHE_EXT 0x2 194f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_AFFINITY_DOMAIN_L3_CACHE_EXT 0x3 195f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_AFFINITY_DOMAIN_L4_CACHE_EXT 0x4 196f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_AFFINITY_DOMAIN_NUMA_EXT 0x10 197f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT 0x100 198f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 199f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org /* cl_device_partition_property_ext list terminators */ 200f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_PROPERTIES_LIST_END_EXT ((cl_device_partition_property_ext) 0) 201f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext) 0) 202f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org #define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext) 0 - 1) 203f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 204f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 205f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 206f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif /* CL_VERSION_1_1 */ 207f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 208f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifdef __cplusplus 209f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org} 210f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif 211f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 212f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 213f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif /* __CL_EXT_H */ 214