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
5 changes: 4 additions & 1 deletion hopper/flash_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,10 @@ mha_fwd(at::Tensor q, // (b, s_q, h, d) or (total_q, h, d) if there is cu_seql
tile_count_semaphore.zero_(); // If varlen we'll manually do the zero-ing
}
params.tile_count_semaphore = scheduler_needs_semaphore ? tile_count_semaphore.data_ptr<int>() : nullptr;
params.num_splits_dynamic_ptr = use_dynamic_split ? tile_count_semaphore.data_ptr<int>() + 1 : nullptr;

params.num_splits_dynamic_ptr = use_dynamic_split ?
tile_count_semaphore.data_ptr<int>() + int(scheduler_needs_semaphore)
: nullptr;
}

if (q_v_.has_value()) {
Expand Down