diff options
| author | Pan Xiuli <xiuli.pan@intel.com> | 2016-06-14 05:43:32 +0800 |
|---|---|---|
| committer | Yang Rong <rong.r.yang@intel.com> | 2016-06-17 12:48:58 +0800 |
| commit | 1b076ec070fea9e564a07c293320280fb7bd7f87 (patch) | |
| tree | 359ac09207a5e7ce3279cb77bf42cfb0de222c5f | |
| parent | 1d2c630c00bc96b088d2ac443a214a17bd7f2607 (diff) | |
| download | beignet-1b076ec070fea9e564a07c293320280fb7bd7f87.tar.gz | |
Utest: Porting to GCC6
Due to the change of GCC 6 headers:
https://gcc.gnu.org/gcc-6/porting_to.html
std::abs now need cmath header.
This patch fix some codes form OCL20 branch.
Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
| -rw-r--r-- | utests/compiler_subgroup_reduce.cpp | 1 | ||||
| -rw-r--r-- | utests/compiler_subgroup_scan_exclusive.cpp | 1 | ||||
| -rw-r--r-- | utests/compiler_subgroup_scan_inclusive.cpp | 1 | ||||
| -rw-r--r-- | utests/compiler_workgroup_reduce.cpp | 1 | ||||
| -rw-r--r-- | utests/compiler_workgroup_scan_exclusive.cpp | 1 | ||||
| -rw-r--r-- | utests/compiler_workgroup_scan_inclusive.cpp | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/utests/compiler_subgroup_reduce.cpp b/utests/compiler_subgroup_reduce.cpp index 54863f68..1cd8fe4c 100644 --- a/utests/compiler_subgroup_reduce.cpp +++ b/utests/compiler_subgroup_reduce.cpp @@ -4,6 +4,7 @@ #include <cstdlib> #include <iomanip> #include <algorithm> +#include <cmath> #include "utest_helper.hpp" diff --git a/utests/compiler_subgroup_scan_exclusive.cpp b/utests/compiler_subgroup_scan_exclusive.cpp index abcec6e1..758179e5 100644 --- a/utests/compiler_subgroup_scan_exclusive.cpp +++ b/utests/compiler_subgroup_scan_exclusive.cpp @@ -4,6 +4,7 @@ #include <cstdlib> #include <iomanip> #include <algorithm> +#include <cmath> #include "utest_helper.hpp" diff --git a/utests/compiler_subgroup_scan_inclusive.cpp b/utests/compiler_subgroup_scan_inclusive.cpp index 1528f093..013d5996 100644 --- a/utests/compiler_subgroup_scan_inclusive.cpp +++ b/utests/compiler_subgroup_scan_inclusive.cpp @@ -4,6 +4,7 @@ #include <cstdlib> #include <iomanip> #include <algorithm> +#include <cmath> #include "utest_helper.hpp" diff --git a/utests/compiler_workgroup_reduce.cpp b/utests/compiler_workgroup_reduce.cpp index 2b5d1767..21bcfa28 100644 --- a/utests/compiler_workgroup_reduce.cpp +++ b/utests/compiler_workgroup_reduce.cpp @@ -4,6 +4,7 @@ #include <cstdlib> #include <iomanip> #include <algorithm> +#include <cmath> #include "utest_helper.hpp" diff --git a/utests/compiler_workgroup_scan_exclusive.cpp b/utests/compiler_workgroup_scan_exclusive.cpp index c27a3cb8..022e9899 100644 --- a/utests/compiler_workgroup_scan_exclusive.cpp +++ b/utests/compiler_workgroup_scan_exclusive.cpp @@ -4,6 +4,7 @@ #include <cstdlib> #include <iomanip> #include <algorithm> +#include <cmath> #include "utest_helper.hpp" diff --git a/utests/compiler_workgroup_scan_inclusive.cpp b/utests/compiler_workgroup_scan_inclusive.cpp index afbbc8ee..0f65e217 100644 --- a/utests/compiler_workgroup_scan_inclusive.cpp +++ b/utests/compiler_workgroup_scan_inclusive.cpp @@ -4,6 +4,7 @@ #include <cstdlib> #include <iomanip> #include <algorithm> +#include <cmath> #include "utest_helper.hpp" |
