Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler committed May 9, 2024
1 parent 2272765 commit fece1fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ggml-cuda/fattn.cu
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,11 @@ static __global__ void flash_attn_vec_ext_f16(
dst[j_dst*D*gridDim.y + D*blockIdx.y + tid] = dst_val;
}

if (parallel_blocks == 1 || tid != 0) {
return;
}
if (parallel_blocks != 1 && tid != 0) {
#pragma unroll
for (int j = 0; j < ncols; ++j) {
dst_meta[(ic0 + j)*gridDim.y*parallel_blocks + blockIdx.y*parallel_blocks + ip] = make_float2(kqmax[j], kqsum[j]);
for (int j = 0; j < ncols; ++j) {
dst_meta[(ic0 + j)*gridDim.y*parallel_blocks + blockIdx.y*parallel_blocks + ip] = make_float2(kqmax[j], kqsum[j]);
}
}
#else
NO_DEVICE_CODE;
Expand Down

0 comments on commit fece1fe

Please sign in to comment.