How to append elements to a CuArray or delete some entries from it in GPU kernel function

Hi everyone,

I am looking for a way to be able to efficiently append or delete some entries of a CuArray in the kernels being run on GPU . Also I guess that “append” and “delete” must be perfumed atomically. I am rather new to GPU programming and I wasn’t to figure this out from the documentation, so I would appreciate if anyone knows how to do this.

Thanks

That’s not supported, and would be hard to implement efficiently given how GPUs execute.
If you need to do this, allocate an oversized buffer and a cursor which you increment atomically.