aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-07 18:10:56 +0200
committerThomas White <taw@physics.org>2020-08-07 18:10:56 +0200
commit93adeb93e307a53816a71ff717cafeff6a3695b8 (patch)
treef6c3318b92549dbf86b7f66e2de52b0d4c799422
parentd87110b5501b53cef55b210c9e4fe8f7e5c25687 (diff)
Set CL_TARGET_OPENCL_VERSION in a couple more places
-rw-r--r--src/cl-utils.c1
-rw-r--r--src/cl-utils.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c
index 6aab85b2..c3686f48 100644
--- a/src/cl-utils.c
+++ b/src/cl-utils.c
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <string.h>
+#define CL_TARGET_OPENCL_VERSION 220
#ifdef HAVE_CL_CL_H
#include <CL/cl.h>
#else
diff --git a/src/cl-utils.h b/src/cl-utils.h
index b0027d6d..ec5ac797 100644
--- a/src/cl-utils.h
+++ b/src/cl-utils.h
@@ -33,7 +33,7 @@
#include <config.h>
#endif
-
+#define CL_TARGET_OPENCL_VERSION 220
#ifdef HAVE_CL_CL_H
#include <CL/cl.h>
#else