Is it possible to use push_back with the Thrust library? and what about vector vectors? I would like to use in the GPU what in CPu:
vector< vector<int> > MyVector( 100 );
...
MyVector[i].push_back(j);
Is there any way to use it, for example:
thrust::device_vector<thrust::device_vector<int>> d_vec(4);
and how about creating a device_vectors array? Is it possible?
source
share