Skip to content

Commit 4721a56

Browse files
committed
Revert "CUDA: fix misaligned synchronization in FA (ggml-org#13469)"
This reverts commit 95e1888.
1 parent 10f1f54 commit 4721a56

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ggml/src/ggml-cuda/fattn-mma-f16.cuh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -895,11 +895,6 @@ static __device__ __forceinline__ void flash_attn_ext_f16_process_tile(
895895
float2 * dstk_fixup_meta = dstk_fixup + (gridDim.x + blockIdx.x)*ncols;
896896
dstk_fixup_meta[(threadIdx.y/np)*cols_per_warp + threadIdx.x] = make_float2(KQ_cmn, KQ_crs);
897897
}
898-
} else if (np > 1) {
899-
// Warps with threadIdx.y % np == 0 execute a __syncthreads() in the if branch.
900-
// Therefore, all other warps also need to execute a __syncthreads().
901-
// Otherwise the points at which warps synchronize with each other would become misaligned.
902-
__syncthreads();
903898
}
904899

905900
#pragma unroll

0 commit comments

Comments
 (0)