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