summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Ashbaugh <ben.ashbaugh@intel.com>2020-10-13 08:08:16 -0700
committerAlastair Murray <alastairmurray42@gmail.com>2020-10-14 16:36:27 +0100
commit9fac4e9866a961f66bdd72fa2bff50145512f972 (patch)
tree96532f94deca73f4022529c050884e20c5e90db3
parentb316a57d5b8e3ae4a19c3b344c52ba86a4b7e790 (diff)
downloadOpenCL-Headers-9fac4e9866a961f66bdd72fa2bff50145512f972.tar.gz
OpenCL-Headers-9fac4e9866a961f66bdd72fa2bff50145512f972.tar.bz2
OpenCL-Headers-9fac4e9866a961f66bdd72fa2bff50145512f972.zip
switch the default version for the OpenCL headers to OpenCL 3.0
-rw-r--r--CL/cl_version.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/CL/cl_version.h b/CL/cl_version.h
index f38280a..3844938 100644
--- a/CL/cl_version.h
+++ b/CL/cl_version.h
@@ -19,8 +19,8 @@
/* Detect which version to target */
#if !defined(CL_TARGET_OPENCL_VERSION)
-#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
-#define CL_TARGET_OPENCL_VERSION 220
+#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
+#define CL_TARGET_OPENCL_VERSION 300
#endif
#if CL_TARGET_OPENCL_VERSION != 100 && \
CL_TARGET_OPENCL_VERSION != 110 && \
@@ -29,9 +29,9 @@
CL_TARGET_OPENCL_VERSION != 210 && \
CL_TARGET_OPENCL_VERSION != 220 && \
CL_TARGET_OPENCL_VERSION != 300
-#pragma message("cl_version: CL_TARGET_OPENCL_VERSION is not a valid value (100, 110, 120, 200, 210, 220, 300). Defaulting to 220 (OpenCL 2.2)")
+#pragma message("cl_version: CL_TARGET_OPENCL_VERSION is not a valid value (100, 110, 120, 200, 210, 220, 300). Defaulting to 300 (OpenCL 3.0)")
#undef CL_TARGET_OPENCL_VERSION
-#define CL_TARGET_OPENCL_VERSION 220
+#define CL_TARGET_OPENCL_VERSION 300
#endif