Skip to content

Commit

Permalink
Small changes for adaptiveCpp compatibility (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-Nick authored Apr 17, 2024
1 parent 191098e commit f1e2261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/portblas_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ inline cl::sycl::event fill(cl::sycl::queue q, element_t *buff, element_t value,
template <typename sb_handle_t, typename containerT>
inline bool is_malloc_shared(sb_handle_t &sb_handle, const containerT _rs) {
if constexpr (std::is_pointer_v<containerT>) {
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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/operations/blas1_trees.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ PORTBLAS_INLINE bool TupleOp<rhs_t>::valid_thread(
template <typename rhs_t>
PORTBLAS_INLINE typename TupleOp<rhs_t>::value_t TupleOp<rhs_t>::eval(
typename TupleOp<rhs_t>::index_t i) {
return TupleOp<rhs_t>::value_t(i, cl::sycl::abs(rhs_.eval(i)));
return TupleOp<rhs_t>::value_t(i, cl::sycl::fabs(rhs_.eval(i)));
}

template <typename rhs_t>
Expand Down

0 comments on commit f1e2261

Please sign in to comment.