Skip to content

Commit

Permalink
Update test_accessor according to the spec change
Browse files Browse the repository at this point in the history
accessor::get_pointer() should return global_pointer<value_type>,
but not global_pointer<DataT>
  • Loading branch information
KornevNikita committed May 15, 2024
1 parent 7a206c0 commit 616ebf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/accessor/accessor_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ void test_accessor_ptr_device(AccT& accessor, T& expected_data, AccRes& res_acc,
expected_data);

auto acc_pointer = accessor.get_pointer();
res_acc[res_i++] = std::is_same_v<decltype(acc_pointer), sycl::global_ptr<T>>;
res_acc[res_i++] = std::is_same_v<decltype(acc_pointer), sycl::global_ptr<AccT::value_type>>;
res_acc[res_i++] = value_operations::are_equal(*acc_pointer, expected_data);
}
#endif // !SYCL_CTS_COMPILING_WITH_HIPSYCL
Expand Down

0 comments on commit 616ebf0

Please sign in to comment.