I am trying to find a way, if it is possible, to copy the values that are pointed by a host array of pointers pts that points to some elements of another host array s (float2 type). The values that need to be dereferenced from pts with the -> operator are in random positions in the s array.
Is there a way to copy these values pointed by pts without having to use an intermediate host buffer to write the values in it before using cudaMemcpy?
I only came up with a for loop copying one element at a time but isnt this redundant?
I use cuda 5.5
Thanks.