Skip to content

Commit 638da68

Browse files
doraemonmjmajin0824
andauthored
Refactor: migrate ABG and HBG examples to tests/st (#541)
- Move aicpu_build_graph and host_build_graph cases from examples/ to tests/st/, converting golden.py/kernel_config.py entries to SceneTestCase format - Delete obsolete golden.py, kernel_config.py, README, and docs - Add small-tile dispatch (<16,16,...>) to HBG paged attention kernels so the small1 case (head_dim=16, block_size=16) no longer segfaults from buffer overruns Co-authored-by: majin0824 <majin15@huawei.com>
1 parent af3b1db commit 638da68

65 files changed

Lines changed: 696 additions & 1773 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ci.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,11 @@ def _run_single_platform(platform: str, args: argparse.Namespace) -> list[TaskRe
12251225
"""Run all tasks for a single platform. Returns list of TaskResults."""
12261226
is_sim = platform.endswith("sim")
12271227

1228+
# Ensure PTO-ISA is available before task discovery so that downstream
1229+
# pytest scene tests (which share the same clone path) can find it even
1230+
# when ci.py itself has no tasks to run.
1231+
ensure_pto_isa(args.pto_isa_commit, args.clone_protocol)
1232+
12281233
tasks = discover_tasks(platform, runtime_filter=args.runtime)
12291234
if not tasks:
12301235
logger.info(f"[{platform}] No tasks found")

examples/a2a3/aicpu_build_graph/bgemm/golden.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

examples/a2a3/aicpu_build_graph/bgemm/kernels/kernel_config.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/a2a3/aicpu_build_graph/docs/INCORE_ORCHESTRATION_GUIDE.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

examples/a2a3/aicpu_build_graph/vector_example/golden.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/a2a3/aicpu_build_graph/vector_example/kernels/kernel_config.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

examples/a2a3/host_build_graph/bgemm/golden.py

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)