Skip to content

OpenCL macOS xcode16.0 b3

Rolf Bjarne Kvinge edited this page Jul 9, 2024 · 2 revisions

#OpenCL.framework

diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_ext.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_ext.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_ext.h	2024-06-12 20:38:29
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_ext.h	2024-06-27 01:35:52
@@ -24,13 +24,13 @@
 #ifndef __CL_EXT_H
 #define __CL_EXT_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <stdarg.h>
 #include <OpenCL/cl.h>
 #include <AvailabilityMacros.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* enum can be used if cl_khr_fp64 extension is supported by the OpenCL implementation. */
 #define CL_DEVICE_DOUBLE_FP_CONFIG                  0x1032
diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h	2024-06-12 20:38:29
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h	2024-06-27 01:35:52
@@ -24,10 +24,6 @@
 #ifndef __OPENCL_CL_GL_EXT_H
 #define __OPENCL_CL_GL_EXT_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <OpenCL/cl_gl.h>
 
 #include <OpenGL/CGLTypes.h>
@@ -35,6 +31,10 @@
 	
 #ifndef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
 #include <IOSurface/IOSurface.h>
+#endif
+
+#ifdef __cplusplus
+extern "C" {
 #endif
 
 /* Context GL sharing
diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h	2024-06-12 20:38:29
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h	2024-06-27 01:35:52
@@ -37,8 +37,45 @@
 
 #endif
 
+#if !(defined (_WIN32) && defined(_MSC_VER))
+    #include <stdint.h>
+#endif
+#include <stddef.h>
+#if defined( __VEC__ )
+    #include <altivec.h>
+#endif
+#if defined( __SSE__ )
+    #if defined( __MINGW64__ )
+        #include <intrin.h>
+    #else
+        #include <xmmintrin.h>
+    #endif
+#endif
+#if defined( __SSE2__ )
+    #if defined( __MINGW64__ )
+        #include <intrin.h>
+    #else
+        #include <emmintrin.h>
+    #endif
+#endif
+#if defined( __MMX__ )
+    #include <mmintrin.h>
+#endif
+#if defined( __AVX__ )
+    #if defined( __MINGW64__ )
+        #include <intrin.h>
+    #else
+        #include <immintrin.h>
+    #endif
+#endif
+#if defined( __AVX2__ )
+    #if defined( __MINGW64__ )
+        #include <intrin.h>
+    #else
+        #include <immintrin.h>
+    #endif
+#endif
 
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -210,8 +247,6 @@
 
 #else
 
-#include <stdint.h>
-
 /* scalar types  */
 typedef int8_t          cl_char;
 typedef uint8_t         cl_uchar;
@@ -308,8 +343,6 @@
 
 #endif
 
-#include <stddef.h>
-
 /* Mirror types to GL types. Mirror types allow us to avoid deciding which headers to load based on whether we are using GL or GLES here. */
 typedef unsigned int cl_GLuint;
 typedef int          cl_GLint;
@@ -341,7 +374,6 @@
 #endif
     
 #if defined( __VEC__ )
-   #include <altivec.h>   /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
    typedef vector unsigned char     __cl_uchar16;
    typedef vector signed char       __cl_char16;
    typedef vector unsigned short    __cl_ushort8;
@@ -359,11 +391,6 @@
 #endif
 
 #if defined( __SSE__ )
-    #if defined( __MINGW64__ )
-        #include <intrin.h>
-    #else
-        #include <xmmintrin.h>
-    #endif
     #if __has_extension(attribute_ext_vector_type)
         typedef     __attribute__((ext_vector_type(4)))     float __cl_float4;
     #elif defined( __GNUC__ )
@@ -375,11 +402,6 @@
 #endif
 
 #if defined( __SSE2__ )
-    #if defined( __MINGW64__ )
-        #include <intrin.h>
-    #else
-        #include <emmintrin.h>
-    #endif
     #if __has_extension(attribute_ext_vector_type)
         typedef cl_uchar    __attribute__((ext_vector_type(16)))    __cl_uchar16;
         typedef cl_char     __attribute__((ext_vector_type(16)))    __cl_char16;
@@ -423,7 +445,6 @@
 #endif
 
 #if defined( __MMX__ )
-    #include <mmintrin.h>
     #if __has_extension(attribute_ext_vector_type)
         typedef cl_uchar    __attribute__((ext_vector_type(8)))     __cl_uchar8;
         typedef cl_char     __attribute__((ext_vector_type(8)))     __cl_char8 ;
@@ -463,11 +484,6 @@
 #endif
 
 #if defined( __AVX__ )
-    #if defined( __MINGW64__ )
-        #include <intrin.h>
-    #else
-        #include <immintrin.h> 
-    #endif
     #if __has_extension(attribute_ext_vector_type)
         typedef cl_float    __attribute__((ext_vector_type(8)))     __cl_float8;
         typedef cl_double   __attribute__((ext_vector_type(4)))     __cl_double4;
@@ -485,11 +501,6 @@
 #endif
 
 #if defined( __AVX2__ )
-    #if defined( __MINGW64__ )
-        #include <intrin.h>
-    #else
-        #include <immintrin.h>
-    #endif
 #if __has_extension(attribute_ext_vector_type)
     typedef cl_ushort   __attribute__((ext_vector_type(16)))    __cl_ushort16;
     typedef cl_short    __attribute__((ext_vector_type(16)))    __cl_short16;
diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl.h	2024-06-12 20:38:29
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl.h	2024-06-27 01:35:52
@@ -5,10 +5,6 @@
 #ifndef __GCL_H
 #define __GCL_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <stdarg.h>
 #include <stdint.h>
 #include <AvailabilityMacros.h>
@@ -21,6 +17,10 @@
 
 #include <OpenCL/opencl.h>
 #include <dispatch/dispatch.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
   
 typedef struct _cl_ndrange {
   size_t work_dim;
diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl_priv.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl_priv.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl_priv.h	2024-06-12 20:38:29
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/gcl_priv.h	2024-06-27 01:35:52
@@ -5,11 +5,11 @@
 #ifndef __GRANDCL_PRIV_H
 #define __GRANDCL_PRIV_H
 
+#include <OpenCL/opencl.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
-
-#include <OpenCL/opencl.h>
 
 // Internal type used to map blocks to kernels
 typedef struct {
diff -ruN /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/opencl.h /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/opencl.h
--- /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/opencl.h	2024-06-12 20:38:29
+++ /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/opencl.h	2024-06-27 01:35:52
@@ -5,19 +5,11 @@
 #ifndef __OPENCL_H
 #define __OPENCL_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <OpenCL/cl.h>
 #include <OpenCL/cl_gl.h>
 #include <OpenCL/cl_gl_ext.h>
 #include <OpenCL/cl_ext.h>
 #include <OpenCL/gcl.h>
-
-#ifdef __cplusplus
-}
-#endif
 
 #endif  /* __OPENCL_H  */
 

Clone this wiki locally