summaryrefslogtreecommitdiff
path: root/utests/compiler_subgroup_reduce.cpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2016-06-14 05:43:32 +0800
committerYang Rong <rong.r.yang@intel.com>2016-06-17 12:48:58 +0800
commit1b076ec070fea9e564a07c293320280fb7bd7f87 (patch)
tree359ac09207a5e7ce3279cb77bf42cfb0de222c5f /utests/compiler_subgroup_reduce.cpp
parent1d2c630c00bc96b088d2ac443a214a17bd7f2607 (diff)
downloadbeignet-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>
Diffstat (limited to 'utests/compiler_subgroup_reduce.cpp')
-rw-r--r--utests/compiler_subgroup_reduce.cpp1
1 files changed, 1 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"