mcpField
T
tracelens-analysis-orchestrator

tracelens-analysis-orchestrator

github.com/amdDevelopment470918 installsUpdated 2d ago
Repository

About tracelens-analysis-orchestrator

A skill for coordinating system-level and GPU-kernel analysis of performance traces. It is aimed at analysis agents and combines shared trace preparation, parallel subagents, validation, and an aggregated `analysis.md` report.

Key features

  1. 01Shared trace loading and preparation
  2. 02Parallel system-level analysis
  3. 03Parallel kernel-category analysis
  4. 04Findings aggregation and validation
  5. 05`analysis.md` report generation

Use cases

  1. 01Reviewing system and kernel behavior from a performance trace
  2. 02Comparing GPU kernel categories in one analysis workflow

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/amd/skills --skill tracelens-analysis-orchestrator

After installing, type/tracelens-analysis-orchestratorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.federated.json
agents/
convolution-analyzer.md
cpu-idle-analyzer.md
elementwise-analyzer.md
gemm-analyzer.md
generic-op-analyzer.md
kernel-coherence-agent.md
kernel-fusion-analyzer.md
kernel-stem-preprocessing-agent.md
kernel-unification-agent.md
model-identification-agent.md
moe-analyzer.md
multi-kernel-analyzer.md
norm-analyzer.md
reduce-analyzer.md
sdpa-analyzer.md
semantic-comparison-agent.md
triton-analyzer.md
evals/
.gitignore
EVAL_RUBRICS.md
evals/analysis_tests/
combined_traces_comparative.csv
combined_traces_standalone.csv
evals/eval_scripts/
generate_ref.sh
kill_eval_jobs.sh
pack_test_archives.sh
run_pi_analysis_in_docker.sh
run_repeatability_parallel.sh
evals/eval_utils/
aggregate_repeatability.py
compare_lca_partitions.py
manual_eval_checklist.md

Details

From the project README

Analysis orchestrator

Coordinate system-level analysis (CPU/idle, kernel fusion, multi-kernel / comm / memcpy) and compute-kernel analysis (GEMM, SDPA, elementwise, etc.): one trace load, shared prep, parallel subagents, then aggregation into analysis.md.

Full procedure

Follow reference.md for every step (user prompts, <prefix> / {CMD} usage, CLI commands, subagent launch text, validation, report tee order, plot embedding, and trace diagnostics).

Workflow index

0. Query User Inputs (Platform, Trace Path(s), Analysis Mode, Environment Setup)
1. Generate Performance Report (branches on analysis mode: training vs inference then, comparison scope)
2. Trace-Quality Gate → Deterministic fallback analysis
3-6. Prepare Category Data (GPU Util, Top Ops, Tree Data, Multi-Kernel Data, Category Filtering)
7. System-Level Analysis (PARALLEL) → system_findings/
8. Compute Kernel Subagents (PARALLEL) → category_findings/
  8.5. Aggregate → priority_data.json::findings[]
9. Validate Subagent Outputs
10. load_findings + Model Identification (subagent) → metadata/model_info.json
11. Render performance PNG if agent_extension.py is absent
12. Generate analysis.md (orchestrator writes via <prefix> tee), optional extension, embed PNG

Rules

  • Subagents: Use your runner's subagent primitive (the Task tool in Claude Code or Cursor, spawn_agent under Codex) only where reference.md says “subagent” (Steps 7, 8, 10). The orchestrator runs everything else, including Step 8.5, using the command prefix from <output_dir>/cache/cmd_prefix.txt ({CMD} substitution).
  • Language: Prefer vendor-agnostic terms (GPU kernels, collective communication, vendor GEMM library, DNN primitives, GPU graph). When quoting trace data, real kernel names are fine.
  • Subagent prompts: Point each subagent at the checked-in agent file under TraceLens/Agent/Analysis/skills/analysis-orchestrator/agents/<name>.md (see reference.md for exact paths and prompt shells).

Primary outputs

  • Deliverable: <output_dir>/analysis.md
  • Internals: system_findings/, category_findings/, category_data/, metadata/, perf_report*.xlsx, CSV folders — see package README for layout.

Agent layout

Project subagents ship with this skill: TraceLens/Agent/Analysis/skills/analysis-orchestrator/agents/*.md.

Comments

Markdown supported