37 #include <OpenCL/cl.h> 38 #include <AvailabilityMacros.h> 44 #define CL_DEVICE_HALF_FP_CONFIG 0x1033 63 #define cl_APPLE_SetMemObjectDestructor 1 64 cl_int CL_API_ENTRY clSetMemObjectDestructorAPPLE( cl_mem ,
65 void (* )( cl_mem ,
void* ),
66 void * ) CL_EXT_SUFFIX__VERSION_1_0;
77 #define cl_APPLE_ContextLoggingFunctions 1 78 extern void CL_API_ENTRY clLogMessagesToSystemLogAPPLE(
const char * ,
81 void * ) CL_EXT_SUFFIX__VERSION_1_0;
84 extern
void CL_API_ENTRY clLogMessagesToStdoutAPPLE( const
char * ,
87 void * ) CL_EXT_SUFFIX__VERSION_1_0;
90 extern
void CL_API_ENTRY clLogMessagesToStderrAPPLE( const
char * ,
93 void * ) CL_EXT_SUFFIX__VERSION_1_0;
102 #define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920 105 #define CL_PLATFORM_NOT_FOUND_KHR -1001 107 extern CL_API_ENTRY cl_int CL_API_CALL
108 clIcdGetPlatformIDsKHR(cl_uint ,
112 typedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(
137 #define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x200E 144 #define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x200F 145 #define CL_CONTEXT_TERMINATE_KHR 0x2010 147 #define cl_khr_terminate_context 1 148 extern CL_API_ENTRY cl_int CL_API_CALL clTerminateContextKHR(cl_context ) CL_EXT_SUFFIX__VERSION_1_2;
150 typedef CL_API_ENTRY cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context ) CL_EXT_SUFFIX__VERSION_1_2;
164 #define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000 165 #define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001 166 #define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002 167 #define CL_DEVICE_WARP_SIZE_NV 0x4003 168 #define CL_DEVICE_GPU_OVERLAP_NV 0x4004 169 #define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005 170 #define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006 176 #define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036 178 #ifdef CL_VERSION_1_1 182 #define cl_ext_device_fission 1 184 extern CL_API_ENTRY cl_int CL_API_CALL
185 clReleaseDeviceEXT( cl_device_id ) CL_EXT_SUFFIX__VERSION_1_1;
187 typedef CL_API_ENTRY cl_int
188 (CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id ) CL_EXT_SUFFIX__VERSION_1_1;
190 extern CL_API_ENTRY cl_int CL_API_CALL
191 clRetainDeviceEXT( cl_device_id ) CL_EXT_SUFFIX__VERSION_1_1;
193 typedef CL_API_ENTRY cl_int
194 (CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id ) CL_EXT_SUFFIX__VERSION_1_1;
196 typedef cl_ulong cl_device_partition_property_ext;
197 extern CL_API_ENTRY cl_int CL_API_CALL
198 clCreateSubDevicesEXT( cl_device_id ,
199 const cl_device_partition_property_ext * ,
202 cl_uint * ) CL_EXT_SUFFIX__VERSION_1_1;
204 typedef CL_API_ENTRY cl_int
205 ( CL_API_CALL * clCreateSubDevicesEXT_fn)( cl_device_id ,
206 const cl_device_partition_property_ext * ,
209 cl_uint * ) CL_EXT_SUFFIX__VERSION_1_1;
212 #define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050 213 #define CL_DEVICE_PARTITION_BY_COUNTS_EXT 0x4051 214 #define CL_DEVICE_PARTITION_BY_NAMES_EXT 0x4052 215 #define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT 0x4053 218 #define CL_DEVICE_PARENT_DEVICE_EXT 0x4054 219 #define CL_DEVICE_PARTITION_TYPES_EXT 0x4055 220 #define CL_DEVICE_AFFINITY_DOMAINS_EXT 0x4056 221 #define CL_DEVICE_REFERENCE_COUNT_EXT 0x4057 222 #define CL_DEVICE_PARTITION_STYLE_EXT 0x4058 225 #define CL_DEVICE_PARTITION_FAILED_EXT -1057 226 #define CL_INVALID_PARTITION_COUNT_EXT -1058 227 #define CL_INVALID_PARTITION_NAME_EXT -1059 230 #define CL_AFFINITY_DOMAIN_L1_CACHE_EXT 0x1 231 #define CL_AFFINITY_DOMAIN_L2_CACHE_EXT 0x2 232 #define CL_AFFINITY_DOMAIN_L3_CACHE_EXT 0x3 233 #define CL_AFFINITY_DOMAIN_L4_CACHE_EXT 0x4 234 #define CL_AFFINITY_DOMAIN_NUMA_EXT 0x10 235 #define CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT 0x100 238 #define CL_PROPERTIES_LIST_END_EXT ((cl_device_partition_property_ext) 0) 239 #define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext) 0) 240 #define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext) 0 - 1)