You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In compute_vertex_renumber_map() in src/sampling/sampling_post_processing_impl.cuh there is the following code:
thrust::stable_sort(
handle.get_thrust_policy(),
renumber_map.begin(),
renumber_map.end(),
[offsets = *vertex_type_offsets] __device__(auto lhs, auto rhs) {
auto lhs_v_type = thrust::distance(
offsets.begin() + 1,
thrust::upper_bound(
thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(lhs)));
auto rhs_v_type = thrust::distance(
offsets.begin() + 1,
thrust::upper_bound(
thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(rhs)));
return lhs_v_type < rhs_v_type;
});
From this, we can deduce that the lambda parameter list should be some kind of zip_iterator (as done earlier in the file) or some kind of tuple. However, renumber_map is device_uvector<vertex_t> where vertex_t is int32_t. Thus, when compiling, the thrust::get<> operators don't know what to do with either the lhs or rhs parameters.
Minimum reproducible example
Relevant log output
/home/xxx/Projects/cugraph/cpp/src/sampling/sampling_post_processing_impl.cuh:1400:66: error: no matching functionfor call to 'get'
1400 | thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(rhs)));
| ^~~~~~~~~~~~~~
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/thrust/detail/pair.inl:218:7: note: candidate template ignored: could not match 'pair<T1, T2>' against 'int'
218 | get(pair<T1,T2>&p)
| ^
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/thrust/detail/pair.inl:226:7: note: candidate template ignored: could not match 'pair<T1, T2>' against 'int'
226 | get(const pair<T1,T2>&p)
| ^
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/thrust/tuple.h:262:1: note: candidate template ignored: could not match 'detail::cons<HT, TT>' against 'int'
262 | get(detail::cons<HT, TT>& t);| ^
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/thrust/tuple.h:293:1: note: candidate template ignored: could not match 'detail::cons<HT, TT>' against 'int'
293 | get(const detail::cons<HT, TT>& t);| ^
Environment details
Other/Misc.
No response
Code of Conduct
I agree to follow cuGraph's Code of Conduct
I have searched the open bugs and have found no duplicates for this bug report
The text was updated successfully, but these errors were encountered:
Version
25.02
Which installation method(s) does this occur on?
No response
Describe the bug.
From this, we can deduce that the lambda parameter list should be some kind of zip_iterator (as done earlier in the file) or some kind of tuple. However, renumber_map is device_uvector<vertex_t> where vertex_t is int32_t. Thus, when compiling, the thrust::get<> operators don't know what to do with either the lhs or rhs parameters.
Minimum reproducible example
Relevant log output
Environment details
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: