Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix check on expected return type of local_accessor::get_pointer() #748

Merged
merged 3 commits into from
Jul 24, 2023
Merged
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: 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