Skip to content

Commit 9092792

Browse files
authored
Update main.cpp
1 parent be4e5ed commit 9092792

File tree

1 file changed

+2
-2
lines changed
  • Libraries/oneDPL/stable_sort_by_key/src

1 file changed

+2
-2
lines changed

Libraries/oneDPL/stable_sort_by_key/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ int main() {
4444
[](auto lhs, auto rhs) { return get<0>(lhs) < get<0>(rhs); });
4545

4646
// 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>();
47+
auto host_keys = keys_buf.get_host_access(sycl::read_only);
48+
auto host_vals = vals_buf.get_host_access(sycl::read_only);
4949

5050
// expected output:
5151
// keys: {2, 2, 4, 4, ..., n - 2, n - 2, n, n}

0 commit comments

Comments
 (0)