Pretty much as the title says - I plan to .reserve()
some memory on the host via an STL vector, and then cudaMemcpy
an array from device to host (i.e. into that reserved host memory).
Will the STL vector pick up on the fact I have (by external methods) copied new data into the vector? I.e. will it correctly
- Identify the new size it should be?
- Allow me to access the data via
[i]
-indexing or iterators? - Behave as expected in general, i.e. like any normal vector?