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
{{ message }}
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
if (count <= thrust::detail::integer_traits<thrust::detail::int32_t>::const_max) { \
auto THRUST_PP_CAT2(count, _fixed) = static_cast<thrust::detail::int32_t>(count); \
status = call arguments; \
} \
else { \
auto THRUST_PP_CAT2(count, _fixed) = static_cast<thrust::detail::int64_t>(count); \
status = call arguments; \
}
The dispatch mechanism should be modified so that it's return value can be used to initialize a local so that a temporary does not need to be default constructed in order to use it.
As discussed in #1804,
thrust::reduce_by_key's CUDA implementation assumes that the output iterator it is passed can be default constructed.thrust/thrust/system/cuda/detail/reduce_by_key.h
Line 1087 in d3e6fa1
This is made necessary by the implementation of the dispatch macro:
thrust/thrust/system/cuda/detail/dispatch.h
Lines 29 to 37 in d3e6fa1
The dispatch mechanism should be modified so that it's return value can be used to initialize a local so that a temporary does not need to be default constructed in order to use it.