summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2016-11-26 14:14:52 +0300
committerIvan Shapovalov <intelfx@intelfx.name>2017-01-24 02:42:59 +0300
commitee4124dcbc37b92207d0590524e8246e71811a48 (patch)
tree10399d9c4ca1518f46a29d1f4178cd64f68b1cd9 /samples
parent1a1e863ab305faadfad8a20c4ff7875b6300592b (diff)
samples: add CL_USE_DEPRECATED_OPENCL_1_*_APIS where needed
Diffstat (limited to 'samples')
-rw-r--r--samples/cache.c2
-rw-r--r--samples/dgemv.c2
-rw-r--r--samples/haxpy.c2
-rw-r--r--samples/sasum.c2
-rw-r--r--samples/sgemm.c2
-rw-r--r--samples/sgemm.cpp3
6 files changed, 13 insertions, 0 deletions
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 <string.h>
#include <time.h>
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
+
// Includes the CLBlast library (C interface)
#include <clblast_c.h>
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 <stdio.h>
#include <string.h>
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
+
// Includes the CLBlast library (C interface)
#include <clblast_c.h>
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 <stdio.h>
#include <string.h>
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
+
// Includes the CLBlast library (C interface)
#include <clblast_c.h>
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 <stdio.h>
#include <string.h>
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
+
// Includes the CLBlast library (C interface)
#include <clblast_c.h>
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 <stdio.h>
#include <string.h>
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
+
// Includes the CLBlast library (C interface)
#include <clblast_c.h>
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 <chrono>
#include <vector>
+#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"