We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be4e5ed commit 9092792Copy full SHA for 9092792
1 file changed
Libraries/oneDPL/stable_sort_by_key/src/main.cpp
@@ -44,8 +44,8 @@ int main() {
44
[](auto lhs, auto rhs) { return get<0>(lhs) < get<0>(rhs); });
45
46
// 3.Checking results
47
- auto host_keys = keys_buf.get_access<access::mode::read>();
48
- auto host_vals = vals_buf.get_access<access::mode::read>();
+ auto host_keys = keys_buf.get_host_access(sycl::read_only);
+ auto host_vals = vals_buf.get_host_access(sycl::read_only);
49
50
// expected output:
51
// keys: {2, 2, 4, 4, ..., n - 2, n - 2, n, n}
0 commit comments