Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Small changes for adaptiveCpp compatibility #513

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading