internal static void WarpBroadcastKernel( GroupedIndex index, ArrayView <int> data) { var idx = index.GridIdx * Group.DimensionX + index.GroupIdx; data[idx] = Warp.Broadcast(index.GroupIdx.X, Warp.WarpSize - 1); }
internal static void WarpBroadcastKernel( ArrayView1D <int, Stride1D.Dense> data, ArrayView1D <int, Stride1D.Dense> data2, int c) { var idx = Grid.GlobalIndex.X; data[idx] = Warp.Broadcast(Group.IdxX, Warp.WarpSize - 1); data2[idx] = Warp.Broadcast(c, Warp.WarpSize - 2); }
internal static void WarpBroadcastKernel(ArrayView <int> data) { var idx = Grid.GlobalIndex.X; data[idx] = Warp.Broadcast(Group.IdxX, Warp.WarpSize - 1); }