diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2022-09-27 21:09:35 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2022-09-27 21:09:35 +0200 |
commit | 5c608d97cd1842400c1c3f36348ca669c95981e2 (patch) | |
tree | b739091df8f8b84037b39215bd550781034495bb /samples | |
parent | f7db4c5d45db1ebbc9cc824cbda652b88362574c (diff) |
Properly set OpenCL target to version 2.1
Diffstat (limited to 'samples')
-rw-r--r-- | samples/dtrsm.cpp | 2 | ||||
-rw-r--r-- | samples/sgemm.cpp | 2 | ||||
-rw-r--r-- | samples/sgemm_batched.cpp | 2 | ||||
-rw-r--r-- | samples/tuning_api.cpp | 2 |
4 files changed, 8 insertions, 0 deletions
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 |