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
Swap of universal vectors is unnecessary slow and occupies more memory than it should.
Device and host vectors have swap overloads in thrust:: namespace.
These overloads call efficient .swap member function:
voidswap(device_vector<T, Alloc>& a, device_vector<T, Alloc>& b)
{
a.swap(b);
}
Universal and universal host pinned vectors are missing such an overload and the vector_base they alias to has swap overload in thrust::details, so it’s unreachable.
Is this a duplicate?
Type of Bug
Performance
Component
Thrust
Describe the bug
Swap of universal vectors is unnecessary slow and occupies more memory than it should.
Device and host vectors have swap overloads in
thrust::
namespace.These overloads call efficient
.swap
member function:cccl/thrust/thrust/device_vector.h
Lines 539 to 543 in 80031e2
Universal and universal host pinned vectors are missing such an overload and the
vector_base
they alias to hasswap
overload inthrust::details
, so it’s unreachable.How to Reproduce
Expected behavior
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: