From e3ec870b9199a521c3f076412c8186a77261c5cc Mon Sep 17 00:00:00 2001 From: pgorlani Date: Thu, 11 Apr 2024 10:39:09 +0100 Subject: [PATCH] Use cl::sycl::abs in device code --- src/operations/blas1_trees.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/blas1_trees.hpp b/src/operations/blas1_trees.hpp index 01b094ebc..1baf75bfb 100644 --- a/src/operations/blas1_trees.hpp +++ b/src/operations/blas1_trees.hpp @@ -448,7 +448,7 @@ PORTBLAS_INLINE bool TupleOp::valid_thread( template PORTBLAS_INLINE typename TupleOp::value_t TupleOp::eval( typename TupleOp::index_t i) { - return TupleOp::value_t(i, std::abs(rhs_.eval(i))); + return TupleOp::value_t(i, cl::sycl::abs(rhs_.eval(i))); } template