I'm currently working with CUDA to process lists of co-ordinates. I'm thus reading coordinates from a text file to the host and passing those coordinates into an array on the GPU.
Unfortunately I do not know in advanced how many coordinates are contained in each text file. I thus use a vector to store the coordinates host side - as non-vector array sizes can not be allocated dynamically.
As declaring device variables is done on the fly however, I was wondering if there was a way I could pass the values of my host vector into a device side float array?