In my code, I want to push_back my date on the __global__ function
,and it is hard to use array here. So I want to know is that possible to use the push_back method on kernel of CUDA?
Can I use the std::vector
on the __global__
function through some other way,or how to use the thrust::vector
on __global__
function.
Can somebody give me an example code?