Skip to content

Commit

Permalink
Merge pull request #748 from mmoadeli/SYCL-2020
Browse files Browse the repository at this point in the history
Fix check on expected return type of local_accessor::get_pointer()
  • Loading branch information
bader committed Jul 24, 2023
2 parents 9acc8f3 + e280a65 commit 22a7350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/accessor/local_accessor_api_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ void test_local_accessor_ptr(AccT &accessor, T expected_data, AccRes &res_acc,
auto acc_pointer = accessor.get_pointer();
res_acc[sycl::id<2>(to_integral(check::get_pointer_type), item_id)] =
std::is_same_v<decltype(acc_pointer),
std::add_pointer_t<typename AccT::value_type>>;
sycl::multi_ptr<typename AccT::value_type,
sycl::access::address_space::local_space,
sycl::access::decorated::legacy>>;
if constexpr (!std::is_const_v<typename AccT::value_type>) {
res_acc[sycl::id<2>(to_integral(check::get_multi_ptr_no_result), item_id)] =
value_operations::are_equal(*acc_multi_ptr_no, expected_data);
Expand Down

0 comments on commit 22a7350

Please sign in to comment.