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