Ykk_L:

And I have another question. If some indexes are repeating in I , which value in S would replace the value in x ? Is the latter one in I ?


On the CPU it might be the last value. I think this behavior is undefined on the GPU.



 Ykk_L:

PS: This is the first time I post the problem on the forum. I’m sorry for my misoperation. Could you please delete another question? Thanks.


Sure, we’ll delete the other post.