Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Nov 24, 2023
1 parent c07f60f commit 295715d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
template<typename Kernel_traits, bool Is_dropout, bool Is_causal, bool Is_even_N, bool Is_even_K, bool Return_softmax>
__global__ void flash_fwd_kernel(Flash_fwd_params params)
{

#if __CUDA_ARCH__ >= 800
flash::compute_attn<Kernel_traits, Is_dropout, Is_causal, Is_even_N, Is_even_K, Return_softmax>(params);
#else
// TODO: support flash attention2 on sm<80
assert(false);
#endif
}

template<typename Kernel_traits, bool Is_dropout, bool Is_causal>
Expand Down

0 comments on commit 295715d

Please sign in to comment.