Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ggml/src/ggml-cuda/fattn-common.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "convert.cuh"
#include "vecdotq.cuh"

#include <cmath>
#include <cstdint>

#define FATTN_KQ_STRIDE 256
Expand Down Expand Up @@ -595,7 +596,7 @@ static __global__ void flash_attn_mask_to_KV_max(
#pragma unroll
for (int j = 0; j < ncols1; ++j) {
const float2 tmp = __half22float2(mask[j*s31 + KV_max_sj/2 + tid]);
all_inf = all_inf && int(isinf(tmp.x)) && int(isinf(tmp.y));
all_inf = all_inf && int(std::isinf(tmp.x)) && int(std::isinf(tmp.y));
}

all_inf = warp_reduce_all(all_inf);
Expand Down