aboutsummaryrefslogtreecommitdiffstats
path: root/make/stub_includes/CL20
diff options
context:
space:
mode:
Diffstat (limited to 'make/stub_includes/CL20')
-rw-r--r--make/stub_includes/CL20/cl.h3
-rw-r--r--make/stub_includes/CL20/cl_ext.h2
-rw-r--r--make/stub_includes/CL20/cl_gl.h2
-rw-r--r--make/stub_includes/CL20/cl_gl_ext.h2
-rw-r--r--make/stub_includes/CL20/cl_platform.h5
-rw-r--r--make/stub_includes/CL20/opencl.h8
6 files changed, 14 insertions, 8 deletions
diff --git a/make/stub_includes/CL20/cl.h b/make/stub_includes/CL20/cl.h
index 0105e57..caea06b 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 cc15d85..5fb7349 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 0408093..4ab6fb9 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 a46e0a2..cac8a76 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 cbde285..b18bbd6 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 0c2e639..e8bfc0d 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