Skip to content
Open
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
4 changes: 3 additions & 1 deletion cpp/kernels/fmha_v2/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -5610,6 +5610,8 @@ def enumerate_qmma_flash_kernels(specs,
((192, 128), (64, 64), 1),
((576, 512), (64, 64), 1),
]
if sm == 120:
params_q_kv_step.append((256, (64, 128), 1))
input_layouts = [
InputLayout.PACKED_QKV, InputLayout.CONTIGUOUS_Q_KV,
InputLayout.Q_PAGED_KV, InputLayout.SEPARATE_Q_K_V
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2025, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2020-2026, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -405,7 +405,7 @@ void FusedMHARunnerV2::setupLaunchParams(MHARunnerParams runnerParams)
mLaunchParams.kernel_s = 0;
mLaunchParams.force_unroll = true;
// enable tiled kernels on Ampere/Ada
if ((isSm89 || isSm120f) && mFixedParams.dataType == DATA_TYPE_E4M3)
if (isSm89 && mFixedParams.dataType == DATA_TYPE_E4M3)
{
// so far Ada QMMA only supports non-tiled kernels.
mLaunchParams.granular_tiling = false;
Expand Down
Loading