From ee4124dcbc37b92207d0590524e8246e71811a48 Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Sat, 26 Nov 2016 14:14:52 +0300 Subject: samples: add CL_USE_DEPRECATED_OPENCL_1_*_APIS where needed --- samples/cache.c | 2 ++ samples/dgemv.c | 2 ++ samples/haxpy.c | 2 ++ samples/sasum.c | 2 ++ samples/sgemm.c | 2 ++ samples/sgemm.cpp | 3 +++ 6 files changed, 13 insertions(+) (limited to 'samples') diff --git a/samples/cache.c b/samples/cache.c index 40f2163f..980c7cf3 100644 --- a/samples/cache.c +++ b/samples/cache.c @@ -20,6 +20,8 @@ #include #include +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the CLBlast library (C interface) #include diff --git a/samples/dgemv.c b/samples/dgemv.c index dc2fe7db..975cb7ac 100644 --- a/samples/dgemv.c +++ b/samples/dgemv.c @@ -19,6 +19,8 @@ #include #include +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the CLBlast library (C interface) #include diff --git a/samples/haxpy.c b/samples/haxpy.c index 8e0833f8..4f2bb400 100644 --- a/samples/haxpy.c +++ b/samples/haxpy.c @@ -18,6 +18,8 @@ #include #include +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the CLBlast library (C interface) #include diff --git a/samples/sasum.c b/samples/sasum.c index c285dd14..78377336 100644 --- a/samples/sasum.c +++ b/samples/sasum.c @@ -19,6 +19,8 @@ #include #include +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the CLBlast library (C interface) #include diff --git a/samples/sgemm.c b/samples/sgemm.c index 132dad81..92f3057d 100644 --- a/samples/sgemm.c +++ b/samples/sgemm.c @@ -19,6 +19,8 @@ #include #include +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the CLBlast library (C interface) #include diff --git a/samples/sgemm.cpp b/samples/sgemm.cpp index 401ecff8..b05c390e 100644 --- a/samples/sgemm.cpp +++ b/samples/sgemm.cpp @@ -20,6 +20,9 @@ #include #include +#define CL_USE_DEPRECATED_OPENCL_1_1_APIS // to disable deprecation warnings +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the C++ OpenCL API. If not yet available, it can be found here: // https://www.khronos.org/registry/cl/api/1.1/cl.hpp #include "cl.hpp" -- cgit v1.2.3