summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-01-24 09:10:35 +0100
committerGitHub <noreply@github.com>2017-01-24 09:10:35 +0100
commite943fe77d64f42ed1e57c9919de8ca6787760f2b (patch)
tree9da420f6259d2e7a5aafffd530d6a84dea8402e3 /samples
parent2e4f6e16098d36d0572769a1092d1e54cdb6d4ea (diff)
parent46a59eb8821e3c92db7be347fca099405246d9ec (diff)
Merge pull request #131 from intelfx/misc
Assorted minor fixes
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.cpp5
6 files changed, 14 insertions, 1 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..b960865b 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"
@@ -103,7 +106,7 @@ int main() {
auto time_ms = std::chrono::duration<double,std::milli>(elapsed_time).count();
// Example completed. See "clblast.h" for status codes (0 -> success).
- printf("Completed SGEMM in %.3lf ms with status %d\n", time_ms, status);
+ printf("Completed SGEMM in %.3lf ms with status %d\n", time_ms, static_cast<int>(status));
return 0;
}