From f1e2261861f9109d680712ea5fb60dfbb0224257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Scipione?= Date: Wed, 17 Apr 2024 15:22:04 +0200 Subject: [PATCH] Small changes for adaptiveCpp compatibility (#513) --- include/portblas_helper.h | 4 ++-- src/operations/blas1_trees.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/portblas_helper.h b/include/portblas_helper.h index a07ba745a..9171fcb7c 100644 --- a/include/portblas_helper.h +++ b/include/portblas_helper.h @@ -223,8 +223,8 @@ inline cl::sycl::event fill(cl::sycl::queue q, element_t *buff, element_t value, template inline bool is_malloc_shared(sb_handle_t &sb_handle, const containerT _rs) { if constexpr (std::is_pointer_v) { - return sycl::usm::alloc::shared == - sycl::get_pointer_type(_rs, sb_handle.get_queue().get_context()); + return cl::sycl::usm::alloc::shared == + cl::sycl::get_pointer_type(_rs, sb_handle.get_queue().get_context()); } else { return false; } diff --git a/src/operations/blas1_trees.hpp b/src/operations/blas1_trees.hpp index 1baf75bfb..25b9b1dc1 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, cl::sycl::abs(rhs_.eval(i))); + return TupleOp::value_t(i, cl::sycl::fabs(rhs_.eval(i))); } template