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
Currently, writing something like std::vector<cu::DeviceMemory> v(2); is not supported since there is no default constructor for cu::DeviceMemory. I am now working around this by declaring std::vector<cu::DeviceMemory> v and filling the vector by repeatedly calling v.emplace_back(<size>).
This works fine for my current use case, but maybe there are other cases where it is more convenient to allocate a number of cu::DeviceMemory objects with the same size in one go.
The same applies to other cu:: classes, like cu::HostMemory.
The text was updated successfully, but these errors were encountered:
Currently, writing something like
std::vector<cu::DeviceMemory> v(2);
is not supported since there is no default constructor forcu::DeviceMemory
. I am now working around this by declaringstd::vector<cu::DeviceMemory> v
and filling the vector by repeatedly callingv.emplace_back(<size>)
.This works fine for my current use case, but maybe there are other cases where it is more convenient to allocate a number of
cu::DeviceMemory
objects with the same size in one go.The same applies to other
cu::
classes, likecu::HostMemory
.The text was updated successfully, but these errors were encountered: