执行层次与索引 Grid(一维/二维/三维) └─ Block(一维/二维/三维) └─ Thread 一维全局索引:i = blockIdx.x * blockDim.x + th…