diff options
Diffstat (limited to 'make/stub_includes')
-rw-r--r-- | make/stub_includes/CL11/cl.h | 1 | ||||
-rw-r--r-- | make/stub_includes/CL12/cl.h | 1 | ||||
-rw-r--r-- | make/stub_includes/CL20/cl.h | 3 | ||||
-rw-r--r-- | make/stub_includes/CL20/cl_ext.h | 2 | ||||
-rw-r--r-- | make/stub_includes/CL20/cl_gl.h | 2 | ||||
-rw-r--r-- | make/stub_includes/CL20/cl_gl_ext.h | 2 | ||||
-rw-r--r-- | make/stub_includes/CL20/cl_platform.h | 5 | ||||
-rw-r--r-- | make/stub_includes/CL20/opencl.h | 8 |
8 files changed, 16 insertions, 8 deletions
diff --git a/make/stub_includes/CL11/cl.h b/make/stub_includes/CL11/cl.h index 4355e740..51f86cda 100644 --- a/make/stub_includes/CL11/cl.h +++ b/make/stub_includes/CL11/cl.h @@ -27,6 +27,7 @@ #define __OPENCL_CL_H #ifdef __APPLE__ +#pragma GCC diagnostic ignored "-Wignored-attributes" #include <OpenCL/cl_platform.h> #else #include <CL/cl_platform.h> diff --git a/make/stub_includes/CL12/cl.h b/make/stub_includes/CL12/cl.h index c2969b2c..6ac4a5c4 100644 --- a/make/stub_includes/CL12/cl.h +++ b/make/stub_includes/CL12/cl.h @@ -25,6 +25,7 @@ #define __OPENCL_CL_H #ifdef __APPLE__ +#pragma GCC diagnostic ignored "-Wignored-attributes" #include <OpenCL/cl_platform.h> #else #include <CL/cl_platform.h> diff --git a/make/stub_includes/CL20/cl.h b/make/stub_includes/CL20/cl.h index 0105e573..caea06bb 100644 --- a/make/stub_includes/CL20/cl.h +++ b/make/stub_includes/CL20/cl.h @@ -25,7 +25,8 @@ #define __OPENCL_CL_H #ifdef __APPLE__ -#include <OpenCL/cl_platform.h> +#pragma GCC diagnostic ignored "-Wignored-attributes" +#include <CL/cl_platform.h> #else #include <CL/cl_platform.h> #endif diff --git a/make/stub_includes/CL20/cl_ext.h b/make/stub_includes/CL20/cl_ext.h index cc15d85f..5fb73490 100644 --- a/make/stub_includes/CL20/cl_ext.h +++ b/make/stub_includes/CL20/cl_ext.h @@ -34,7 +34,7 @@ extern "C" { #endif #ifdef __APPLE__ - #include <OpenCL/cl.h> + #include <CL/cl.h> #include <AvailabilityMacros.h> #else #include <CL/cl.h> diff --git a/make/stub_includes/CL20/cl_gl.h b/make/stub_includes/CL20/cl_gl.h index 04080937..4ab6fb90 100644 --- a/make/stub_includes/CL20/cl_gl.h +++ b/make/stub_includes/CL20/cl_gl.h @@ -25,7 +25,7 @@ #define __OPENCL_CL_GL_H #ifdef __APPLE__ -#include <OpenCL/cl.h> +#include <CL/cl.h> #else #include <CL/cl.h> #endif diff --git a/make/stub_includes/CL20/cl_gl_ext.h b/make/stub_includes/CL20/cl_gl_ext.h index a46e0a2e..cac8a760 100644 --- a/make/stub_includes/CL20/cl_gl_ext.h +++ b/make/stub_includes/CL20/cl_gl_ext.h @@ -34,7 +34,7 @@ extern "C" { #endif #ifdef __APPLE__ - #include <OpenCL/cl_gl.h> + #include <CL/cl_gl.h> #else #include <CL/cl_gl.h> #endif diff --git a/make/stub_includes/CL20/cl_platform.h b/make/stub_includes/CL20/cl_platform.h index cbde2858..b18bbd6e 100644 --- a/make/stub_includes/CL20/cl_platform.h +++ b/make/stub_includes/CL20/cl_platform.h @@ -53,6 +53,11 @@ extern "C" { #define GCL_API_SUFFIX__VERSION_1_1 AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER #define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER #define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7 + /* OpenCL 2 unavailable on Mac as of 11/1/2015 */ + #define CL_API_SUFFIX__VERSION_2_0 + #define CL_EXT_SUFFIX__VERSION_2_0 + #define CL_EXT_PREFIX__VERSION_2_0_DEPRECATED + #define CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED #ifdef AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER #define CL_API_SUFFIX__VERSION_1_2 AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER diff --git a/make/stub_includes/CL20/opencl.h b/make/stub_includes/CL20/opencl.h index 0c2e639c..e8bfc0d7 100644 --- a/make/stub_includes/CL20/opencl.h +++ b/make/stub_includes/CL20/opencl.h @@ -32,10 +32,10 @@ extern "C" { #ifdef __APPLE__ -#include <OpenCL/cl.h> -#include <OpenCL/cl_gl.h> -#include <OpenCL/cl_gl_ext.h> -#include <OpenCL/cl_ext.h> +#include <CL/cl.h> +#include <CL/cl_gl.h> +#include <CL/cl_gl_ext.h> +#include <CL/cl_ext.h> #else |