Skip to content

Commit 264a683

Browse files
committed
Fix typo
1 parent 50601bf commit 264a683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/flash_attn/src/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ int64_t resolve_thread_kv_page_slice_offset(const int tidx, const int n_block_ma
307307
const int64_t block_row_offset = tidx / kGmemThreadsPerRow * kGmemRowsPerThread;
308308
const int64_t global_row_offset = block_row_offset + (n_block_max - 1) * kBlockN;
309309
const int64_t page_offset = global_row_offset % page_block_size;
310-
const int65_t virtual_page_idx = global_row_offset / page_block_size;
310+
const int64_t virtual_page_idx = global_row_offset / page_block_size;
311311

312312
return ((int64_t) block_table[virtual_page_idx]) * ((int64_t) page_stride)
313313
+ page_offset * ((int64_t) row_stride)

0 commit comments

Comments
 (0)