Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
95848d0
feat(rocke): runtime_layout mode for the gfx942/gfx950 tiled 2D unifi…
dpeabody-amd Oct 22, 2026
9be07dd
feat(hip-kernel-provider): hipkernel:AttentionPagedUnified paged/ragg…
dpeabody-amd Oct 22, 2026
6114fe0
feat(rocke): attention sinks in the gfx942/gfx950 tiled 2D runtime_la…
dpeabody-amd Oct 22, 2026
709240c
feat(hip-kernel-provider): AttentionPagedUnified sink objects
dpeabody-amd Oct 22, 2026
b50c351
feat(hip-kernel-provider): attention sinks in hipkernel:AttentionPage…
dpeabody-amd Nov 3, 2026
8875897
test(hip-kernel-provider): pin the schema gate in front of hipkernel:…
dpeabody-amd Nov 4, 2026
2849a8b
refactor(hip-kernel-provider): share the cuDNN paged-graph checks in …
dpeabody-amd Nov 7, 2026
9214c37
feat(hip-kernel-provider): save and restore hipkernel:AttentionPagedU…
dpeabody-amd Nov 4, 2026
3bed02a
feat(hip-kernel-provider): serve FLOAT attention sinks in hipkernel:A…
dpeabody-amd Nov 7, 2026
cdfa58d
fix(hip-kernel-provider): review round 4 on the runtime-layout attent…
dpeabody-amd Nov 10, 2026
1afd213
fix(hip-kernel-provider): refuse a K without a block extent in Attent…
dpeabody-amd Nov 13, 2026
1968229
Merge origin/develop into users/dpeabody/hipdnn-cdna-paged-attn
dpeabody-amd Nov 13, 2026
63ac74d
Merge origin/develop into users/dpeabody/hipdnn-cdna-paged-attn
dpeabody-amd Nov 13, 2026
14bdc51
Merge origin/develop into users/dpeabody/hipdnn-cdna-paged-attn
dpeabody-amd Nov 14, 2026
2d917c9
feat(hip-kernel-provider): contain out-of-range page ids and lengths …
dpeabody-amd Nov 14, 2026
ebcfcb9
test(hip-kernel-provider): re-bless the runtime_layout IR goldens for…
dpeabody-amd Nov 14, 2026
bf3edcf
test(hip-kernel-provider): regenerate the AttentionPagedUnified v1 la…
dpeabody-amd Nov 14, 2026
4c6aaa8
Merge origin/develop into users/dpeabody/hipdnn-cdna-paged-attn
dpeabody-amd Nov 14, 2026
6641b61
style(hip-kernel-provider): apply clang-format and black to the page-…
dpeabody-amd Nov 14, 2026
00e3b57
refactor(hip-kernel-provider): use the shared cuDNN paged-graph check…
dpeabody-amd Nov 14, 2026
c354ad7
Merge origin/develop into users/dpeabody/hipdnn-cdna-paged-attn
dpeabody-amd Nov 18, 2026
3e0fa55
test(hip-kernel-provider): re-record the runtime_layout goldens after…
dpeabody-amd Nov 18, 2026
7a034b7
fix(hip-kernel-provider): type-check runtime_layout, pin the tile and…
dpeabody-amd Nov 18, 2026
9eb1515
ci(hip-kernel-provider): shard the runtime_layout host pytest entry
dpeabody-amd Nov 18, 2026
9bff129
test(hip-kernel-provider): pin AttentionPagedUnified's graph schema 1…
dpeabody-amd Nov 18, 2026
e0da3b1
test(hip-kernel-provider): pass cuSeqLen to the schema gate's version…
dpeabody-amd Nov 18, 2026
a33a472
fix(hip-kernel-provider): cap a page-table length by the table's widt…
dpeabody-amd Nov 18, 2026
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
3 changes: 3 additions & 0 deletions dnn-providers/hip-kernel-provider/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ if(HIPKERNELPROVIDER_ENABLE_TESTS)
set(HIPKERNELPROVIDER_GFX950_ATTENTION_INTEGRATION_CATEGORIES_YAML "${CMAKE_CURRENT_SOURCE_DIR}/hipkernel_Gfx950Attention_test_categories_integration.yaml")
set(HIPKERNELPROVIDER_GFX942_ATTENTION_UNIFIED_3D_INTEGRATION_CATEGORIES_YAML "${CMAKE_CURRENT_SOURCE_DIR}/hipkernel_Gfx942AttentionUnified3d_test_categories_integration.yaml")
set(HIPKERNELPROVIDER_GFX942_ATTENTION_DENSE_INTEGRATION_CATEGORIES_YAML "${CMAKE_CURRENT_SOURCE_DIR}/hipkernel_Gfx942AttentionDense_test_categories_integration.yaml")
set(HIPKERNELPROVIDER_ATTENTION_PAGED_UNIFIED_INTEGRATION_CATEGORIES_YAML "${CMAKE_CURRENT_SOURCE_DIR}/hipkernel_AttentionPagedUnified_test_categories_integration.yaml")
set(ROCKE_ENGINE_CTEST_CATEGORIES_YAML "${CMAKE_CURRENT_SOURCE_DIR}/ROCKE_ENGINE_test_categories_external.yaml")
set(HKP_PACK_CTEST_CATEGORIES_YAML "${CMAKE_CURRENT_SOURCE_DIR}/HKP_PACK_test_categories_external.yaml")
set(HIPKERNELPROVIDER_CTEST_INSTALL_FILE "")
Expand All @@ -495,6 +496,7 @@ if(HIPKERNELPROVIDER_ENABLE_TESTS)
AND EXISTS "${HIPKERNELPROVIDER_GFX950_ATTENTION_INTEGRATION_CATEGORIES_YAML}"
AND EXISTS "${HIPKERNELPROVIDER_GFX942_ATTENTION_UNIFIED_3D_INTEGRATION_CATEGORIES_YAML}"
AND EXISTS "${HIPKERNELPROVIDER_GFX942_ATTENTION_DENSE_INTEGRATION_CATEGORIES_YAML}"
AND EXISTS "${HIPKERNELPROVIDER_ATTENTION_PAGED_UNIFIED_INTEGRATION_CATEGORIES_YAML}"
AND EXISTS "${ROCKE_ENGINE_CTEST_CATEGORIES_YAML}"
AND EXISTS "${ROCM_LIBRARIES_ROOT}/shared/ctest/TestCategories.cmake")
include("${ROCM_LIBRARIES_ROOT}/shared/ctest/TestCategories.cmake")
Expand All @@ -506,6 +508,7 @@ if(HIPKERNELPROVIDER_ENABLE_TESTS)
"${HIPKERNELPROVIDER_GFX950_ATTENTION_INTEGRATION_CATEGORIES_YAML}"
"${HIPKERNELPROVIDER_GFX942_ATTENTION_UNIFIED_3D_INTEGRATION_CATEGORIES_YAML}"
"${HIPKERNELPROVIDER_GFX942_ATTENTION_DENSE_INTEGRATION_CATEGORIES_YAML}"
"${HIPKERNELPROVIDER_ATTENTION_PAGED_UNIFIED_INTEGRATION_CATEGORIES_YAML}"
"${ROCKE_ENGINE_CTEST_CATEGORIES_YAML}"
"${HIPKERNELPROVIDER_CTEST_CATEGORIES_YAML}"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ test_categories:
- "rocke_library_conv_pytest"
- "rocke_library_attention_cpu_pytest"
- "rocke_library_attention_cache_key_pytest"
- "rocke_library_attention_runtime_layout_pytest"
- "rocke_library_attention_pytest"
# Not registered on Windows (see rocke/platform/CMakeLists.txt); the
# parser ignores a listed name that has no registered test.
Expand Down Expand Up @@ -172,6 +173,7 @@ test_categories:
- "rocke_library_conv_pytest"
- "rocke_library_attention_cpu_pytest"
- "rocke_library_attention_cache_key_pytest"
- "rocke_library_attention_runtime_layout_pytest"
- "rocke_library_attention_pytest"
# Not registered on Windows (see rocke/platform/CMakeLists.txt); the
# parser ignores a listed name that has no registered test.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Integration test configuration for hipkernel:AttentionPagedUnified, gfx942 entry
# Filters use GTest-style globs: * matches any sequence of characters

[meta]
version = 1

# The engine serves the paged/ragged SdpaFwd bundles on gfx942 and gfx950. No tolerance
# overrides needed: the forward pass uses the common SdpaAttributes tolerance
# (tol::sdpa::getToleranceFwd<T>()).
#
# The engine ships for both architectures, so on a gfx950 device this entry would repeat
# the gfx950 entry's run. Skip there, so a package carrying both shards runs the bundles
# once. Any other device declines through the ordinary path (the packs arch-prune
# before the matcher).
[[test_skips]]
archs = ["gfx950"]
filters = ["*"]
reason = "hipkernel:AttentionPagedUnified: this entry runs on gfx942 only"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Integration test configuration for hipkernel:AttentionPagedUnified, gfx950 entry
# Filters use GTest-style globs: * matches any sequence of characters

[meta]
version = 1

# The engine serves the paged/ragged SdpaFwd bundles on gfx942 and gfx950. No tolerance
# overrides needed: the forward pass uses the common SdpaAttributes tolerance
# (tol::sdpa::getToleranceFwd<T>()).
#
# The engine ships for both architectures, so on a gfx942 device this entry would repeat
# the gfx942 entry's run. Skip there, so a package carrying both shards runs the bundles
# once. Any other device declines through the ordinary path (the packs arch-prune
# before the matcher).
[[test_skips]]
archs = ["gfx942"]
filters = ["*"]
reason = "hipkernel:AttentionPagedUnified: this entry runs on gfx950 only"
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ too. Two answers decide which engine-pinned tests are registered:
- **Per-arch registrations** (the census, and the external and gpu_ref integration
checks) install into a gfx-specific shard and are gated on
`hkp_product_ships_engine_for_arch()`, which reads what the shard for that arch
ships. The single-arch rocKE attention engines pinned against the SdpaFwd bundles
are registered from one table, `HKP_PINNED_ATTENTION_ENGINES` in `src/CMakeLists.txt`.
ships. The rocKE attention engines pinned against the SdpaFwd bundles are registered
from one table, `HKP_PINNED_ATTENTION_ENGINES` in `src/CMakeLists.txt`, one row per
engine and architecture.
- **Host-side sources that pin an engine**, such as the attention knob suites, are gated
on `hkp_product_offers_engine()`, which reads what the product root carries for any
arch under this build's filters. It never reads `GPU_TARGETS`: the host libraries and
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
# SPDX-License-Identifier: MIT
#
# hip-kernel-provider hipkernel:AttentionPagedUnified external integration test categories.
#
# One lane per architecture the engine ships for (gfx942, gfx950), each pinned to
# hipkernel:AttentionPagedUnified via --test-engine. Selects the shared
# integration-test-bundles/{quick,standard,comprehensive,full}/SdpaFwd/ suites by suite
# name. Engine pinning and support claims do the rest: a claimed case the engine declines
# fails its lane, an unclaimed one it declines skips (every non-paged SdpaFwd bundle), and
# an unclaimed one it accepts runs and is reported as unclaimed support.
# Tiers cascade: standard runs quick + standard, comprehensive runs quick + standard +
# comprehensive; only "full" runs the full-tier bundles.

_common_excludes: &common_excludes
- "*DISABLED*"

test_categories:
quick:
description: "Quick paged attention SdpaFwd bundle coverage"
test_patterns:
- "quick_SdpaFwd_*.*"
exclude: *common_excludes
labels:
- "quick"
- "pre-commit"
- "smoke"

standard:
description: "Standard paged attention SdpaFwd bundle coverage"
test_patterns:
- "quick_SdpaFwd_*.*"
- "standard_SdpaFwd_*.*"
exclude: *common_excludes
labels:
- "standard"
- "pr"
- "precheckin"

comprehensive:
description: "Comprehensive paged attention SdpaFwd coverage: quick + standard + comprehensive-tier bundles"
test_patterns:
- "quick_SdpaFwd_*.*"
- "standard_SdpaFwd_*.*"
- "comprehensive_SdpaFwd_*.*"
exclude: *common_excludes
labels:
- "comprehensive"
- "nightly"
- "extended"

full:
description: "Full paged attention SdpaFwd coverage"
test_patterns:
- "*_SdpaFwd_*.*"
exclude: *common_excludes
labels:
- "full"
- "all"

ffm-quick:
description: "Fast-feedback quick tier: paged attention SdpaFwd quick bundles"
test_patterns:
- "quick_SdpaFwd_*.*"
exclude: *common_excludes
labels:
- "ffm-quick"
- "ffm-full"

# category_timeouts are CTest kill limits, set to 2x the tier's runtime budget
# (quick ~5 min, standard ~30 min incl. quick, comprehensive <= 60 min incl.
# quick+standard; full has no budget) so a budget overrun is a failure to
# investigate while ordinary run-to-run variance does not trip the timeout.
execution_settings:
default_timeout: 300
timeout_multiplier: 1
category_timeouts:
quick: 600
standard: 3600
comprehensive: 7200
full: 14400
ffm-quick: 1800
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,15 @@ def items(spec):
raise TypeError(f"tuning kernel spec must be a dataclass, got {spec!r}")
# An LSE-off reduce leaves out ``emit_lse``, so its key (and the
# spec_hash taken over it) is the one stored before the field existed.
# The 2D ``runtime_layout`` flag (hipDNN's paged engine; dispatch
# never sets it) is left out the same way while it is off.
return tuple(
(f.name, repr(getattr(spec, f.name)))
for f in fields(spec)
if not (f.name == "emit_lse" and not spec.emit_lse)
if not (
f.name in ("emit_lse", "runtime_layout")
and not getattr(spec, f.name)
)
)

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def _semantic_fields(
"causal_top_left",
"right_bound",
"emit_lse",
# hipDNN's paged engine selects it (kernels/*/attention_tiled_2d.py);
# dispatch never does, and a sweep must not vary it.
"runtime_layout",
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,13 @@ def defaults(self, base, kernel):
# ``emit_lse`` is an output the problem selects, not a default that
# knobs are a delta against: keeping it out of both the 2D kernel
# and the split-KV reduce defaults leaves every config_key, and so
# every stored pin, as before the field existed.
# every stored pin, as before the field existed. The 2D
# ``runtime_layout`` flag (hipDNN's paged engine; never a knob) is
# kept out of the kernel defaults for the same reason.
"kernel": {
name: value
for name, value in _declared_defaults(type(kernel.kernel_spec))
if name not in recorded and name != "emit_lse"
if name not in recorded and name not in ("emit_lse", "runtime_layout")
},
"reduce": (
None
Expand Down
Loading
Loading