title: CUDA: Particle method, ID assignment to newly created particles in the Threads
body: <p>I have a problem in my project. It is in particle method and particles have their own properties like ID velocity pressure etc. The calculation is done in GPU, one thread per particle. Now when the particle splits, say into 3. The new particles need ID but the problem is multiple splitted particles from multiple threads try to assign the same particle ID. I currently did that using <code>__syncthreads()</code> but it is slow. Is there any other way to achieve that?</p>