Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ fwd_result fmha_fwd_run(mode_enum mode,
traits.has_logits_soft_cap = 0.f < logits_soft_cap;
traits.mask_type = mask.type;
traits.bias_type = bias.type;
traits.has_sink = mask.sink > 0 ? true : false;
traits.has_sink = (mask.sink > 0 || init_sink_value != 0) ? true : false;
traits.has_lse = lse;

if constexpr(std::is_same_v<fmha_fwd_traits, std::decay_t<decltype(traits)>>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,27 @@ COMMON_ARGS='-v=1 -warmup=0 -repeat=1'

TEST_SPLITKV=0
TEST_APPENDKV=0
TEST_STREAM_SINK=0
TEST_GPTOSS_SINK=0
# options:
# -s: run splitkv tests
# -a: run appendkv tests
while getopts ":sa" opt; do
# -m: run StreamLLM sink mask tests (requires sink=true kernels)
# -g: run GPT-OSS sink init tests (requires sink=true kernels)
while getopts ":samg" opt; do
case "${opt}" in
s)
TEST_SPLITKV=1
;;
a)
TEST_APPENDKV=1
;;
m)
TEST_STREAM_SINK=1
;;
g)
TEST_GPTOSS_SINK=1
;;
*)
;;
esac
Expand Down Expand Up @@ -300,8 +310,13 @@ run_padding_smoke_tests
run_padding_basic_boundary_tests
run_fp8bf16_tests
run_fp8fp32_tests
run_sink_mask_tests
run_sink_init_tests
if [ $TEST_STREAM_SINK -eq 1 ] ; then
run_sink_mask_tests
fi

if [ $TEST_GPTOSS_SINK -eq 1 ] ; then
run_sink_init_tests
fi

if [ $TEST_APPENDKV -eq 1 ] ; then
run_fp16_appendkv_tests
Expand Down
Loading