From: Pan Xiuli <[email protected]>

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 <[email protected]>
---
 utests/compiler_subgroup_reduce.cpp          | 1 +
 utests/compiler_subgroup_scan_exclusive.cpp  | 1 +
 utests/compiler_subgroup_scan_inclusive.cpp  | 1 +
 utests/compiler_workgroup_reduce.cpp         | 1 +
 utests/compiler_workgroup_scan_exclusive.cpp | 1 +
 utests/compiler_workgroup_scan_inclusive.cpp | 1 +
 6 files changed, 6 insertions(+)

diff --git a/utests/compiler_subgroup_reduce.cpp 
b/utests/compiler_subgroup_reduce.cpp
index 54863f6..1cd8fe4 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 abcec6e..758179e 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 1528f09..013d599 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 2b5d176..21bcfa2 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 c27a3cb..022e989 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 afbbc8e..0f65e21 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"
 
-- 
2.7.4

_______________________________________________
Beignet mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to