From 4fbc4d04d278da5603d1d0c3ef797049e44818d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20L=C3=BCtke=20Dreimann?= Date: Fri, 26 Aug 2022 17:13:47 +0200 Subject: [PATCH] fixed some warnings in polybench --- repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc | 1 + .../src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc | 1 + .../src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc | 1 + .../src/hello_gpgpu/benchmark/correlation/correlation.cc | 2 +- .../src/hello_gpgpu/benchmark/covariance/covariance.cc | 1 + repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc | 1 + .../src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc | 1 + .../src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc | 1 + .../src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc | 1 + repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc index e82238c92e..48de44b614 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc @@ -14,6 +14,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc index 820486fa97..1698499474 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc @@ -14,6 +14,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc index a4a70984f1..4d99428088 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc @@ -14,6 +14,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc index 97e032442f..981185feba 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc @@ -15,7 +15,7 @@ #include - +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc index 993531fabc..a03349617b 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc @@ -15,6 +15,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc index 19e8d7e766..4395baa1d0 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc @@ -14,6 +14,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc index 9a672d182a..3883de7b4b 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc @@ -14,6 +14,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc index 79b12c4337..f5c079a09b 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc @@ -13,6 +13,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc index cf5d2025a6..b71fa51655 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc @@ -24,6 +24,7 @@ //define the error threshold for the results "not matching" #define PERCENT_DIFF_ERROR_THRESHOLD 0.05 +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc index 7e42fc36f3..01065dce94 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc @@ -14,6 +14,7 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 100 #ifdef __APPLE__ #include #else