I just noticed that scatter can accept invalid index arguments. Say, for a 2x3 matrix, scatter would accept [2, 3] where 3 is actually invalid. I’m just curious about the reason of keeping this configuration.
According to my experience, this may cause CUDA unspecified launch failure error.