Skip to content

Commit

Permalink
Make sorting work with oneDPL-2022.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
krasznaa committed Dec 8, 2024
1 parent 0fb7f27 commit a3c6df7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions device/sycl/src/finding/find_tracks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,13 @@ track_candidate_container_types::buffer find_tracks(
keys_buffer);
vecmem::device_vector<unsigned int> param_ids_device(
param_ids_buffer);
oneapi::dpl::sort_by_key(policy, keys_device.begin(),
keys_device.end(),
param_ids_device.begin());
auto zipped_first = oneapi::dpl::make_zip_iterator(
keys_device.begin(), param_ids_device.begin());
oneapi::dpl::sort(
policy, zipped_first, zipped_first + keys_device.size(),
[](auto lhs, auto rhs) {
return std::get<0>(lhs) < std::get<0>(rhs);
});
}

/*****************************************************************
Expand Down

0 comments on commit a3c6df7

Please sign in to comment.