Skip to content
Merged
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 csrc/cpp_itfs/mha_fwd.cu
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,12 @@ std::tuple<int, int, int> get_grid_dim(const mha_fwd_args& a, int ts_qo, const s

float fmha_fwd_v3(mha_fwd_args a, const ck_tile::stream_config& s)
{
if(!a.use_asm_v3)
return -1;

std::string arch_id = get_gpu_arch();

if((!a.use_asm_v3) || (a.hdim_q != 192 && a.hdim_q != 128) || (a.hdim_v != 128) ||
if((a.hdim_q != 192 && a.hdim_q != 128) || (a.hdim_v != 128) ||
(a.data_type != "bf16" && a.data_type != "fp8bf16") || (a.bias_type != 0) || (a.p_drop > 0.f) ||
((arch_id != "gfx942") && (arch_id != "gfx950")))
{
Expand Down
Loading