summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2022-09-27 21:09:35 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2022-09-27 21:09:35 +0200
commit5c608d97cd1842400c1c3f36348ca669c95981e2 (patch)
treeb739091df8f8b84037b39215bd550781034495bb
parentf7db4c5d45db1ebbc9cc824cbda652b88362574c (diff)
Properly set OpenCL target to version 2.1
-rw-r--r--.gitignore1
-rw-r--r--samples/dtrsm.cpp2
-rw-r--r--samples/sgemm.cpp2
-rw-r--r--samples/sgemm_batched.cpp2
-rw-r--r--samples/tuning_api.cpp2
5 files changed, 9 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index b0f39c40..ab80cec1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,5 +5,6 @@ stash
database.json
database_best.json
cl.hpp
+opencl.hpp
src/pyclblast/dist
*.egg-info
diff --git a/samples/dtrsm.cpp b/samples/dtrsm.cpp
index 979c01d9..c558d1f5 100644
--- a/samples/dtrsm.cpp
+++ b/samples/dtrsm.cpp
@@ -24,6 +24,8 @@
// Includes the C++ OpenCL API. If not yet available, it can be found here:
// https://raw.githubusercontent.com/KhronosGroup/OpenCL-CLHPP/main/include/CL/opencl.hpp
+#define CL_HPP_TARGET_OPENCL_VERSION 210
+#define CL_TARGET_OPENCL_VERSION 210
#include "opencl.hpp"
// Includes the CLBlast library
diff --git a/samples/sgemm.cpp b/samples/sgemm.cpp
index fce2af43..534ffa78 100644
--- a/samples/sgemm.cpp
+++ b/samples/sgemm.cpp
@@ -25,6 +25,8 @@
// Includes the C++ OpenCL API. If not yet available, it can be found here:
// https://raw.githubusercontent.com/KhronosGroup/OpenCL-CLHPP/main/include/CL/opencl.hpp
+#define CL_HPP_TARGET_OPENCL_VERSION 210
+#define CL_TARGET_OPENCL_VERSION 210
#include "opencl.hpp"
// Includes the CLBlast library
diff --git a/samples/sgemm_batched.cpp b/samples/sgemm_batched.cpp
index a986eec7..a839d305 100644
--- a/samples/sgemm_batched.cpp
+++ b/samples/sgemm_batched.cpp
@@ -25,6 +25,8 @@
// Includes the C++ OpenCL API. If not yet available, it can be found here:
// https://raw.githubusercontent.com/KhronosGroup/OpenCL-CLHPP/main/include/CL/opencl.hpp
+#define CL_HPP_TARGET_OPENCL_VERSION 210
+#define CL_TARGET_OPENCL_VERSION 210
#include "opencl.hpp"
// Includes the CLBlast library
diff --git a/samples/tuning_api.cpp b/samples/tuning_api.cpp
index ea75c7f9..7d7294ad 100644
--- a/samples/tuning_api.cpp
+++ b/samples/tuning_api.cpp
@@ -21,6 +21,8 @@
// Includes the C++ OpenCL API. If not yet available, it can be found here:
// https://raw.githubusercontent.com/KhronosGroup/OpenCL-CLHPP/main/include/CL/opencl.hpp
+#define CL_HPP_TARGET_OPENCL_VERSION 210
+#define CL_TARGET_OPENCL_VERSION 210
#include "opencl.hpp"
// Includes the CLBlast library