Each pattern: user question → command sequence → synthesis. Use these as templates when answering from the KB.
python3 scripts/query.py "LDS bank conflict" --architecture gfx942
python3 scripts/get_page.py pattern-lds-bank-conflict --follow-sources
python3 scripts/get_page.py technique-lds-swizzlingSynthesis: cite wiki/patterns/lds-bank-conflict.md for symptoms, then wiki/techniques/lds-swizzling.md and wiki/techniques/lds-double-buffer.md for fixes. Reference hw-lds-cdna for hardware background.
python3 scripts/query.py --tag mfma --architecture MI300X --type hardware
python3 scripts/get_page.py hw-mfma-cdna3Synthesis: read the MFMA-variant table in wiki/hardware/mfma-cdna3.md; recommend mfma_32x32x8_bf16 or mfma_16x16x16_bf16 based on the surrounding loop structure. Cite confidence level.
python3 scripts/query.py "triton autotune" --architecture MI300X
python3 scripts/get_page.py technique-triton-autotune-amd
python3 scripts/get_page.py kernel-gemm-triton-amd --follow-sourcesSynthesis: name the AMD-specific knobs (matrix_instr_nonkdim, kpack, waves_per_eu, num_stages, num_warps); link to the GEMM case study for representative configs.
python3 scripts/get_page.py migration-mi300-to-mi350
python3 scripts/get_page.py hw-mx-formats
python3 scripts/get_page.py hw-mfma-cdna4Synthesis: highlight CDNA4 MX format support and any new MFMA opcodes; call out cdna_relevance if it matters.
python3 scripts/query.py "flash attention" --language triton-amd
python3 scripts/get_page.py kernel-flash-attention-triton-amd --follow-sources
python3 scripts/grep_wiki.py "matrix_instr_nonkdim" --only wikiSynthesis: walk through the tile shape choice, K-packing, and pipeline depth; cite source PRs from the triton-amd candidate ledger.
python3 scripts/grep_wiki.py "s_waitcnt vmcnt"
python3 scripts/get_page.py technique-s-waitcnt-tuningSynthesis: explain the counter and the fence semantics; show the pipelining technique that minimizes how often you wait on vmcnt(0).
python3 scripts/query.py --tag rocprof-compute
python3 scripts/get_page.py technique-rocprof-computeSynthesis: outline rocprof-compute (omniperf) command flow, mention rocprofv3 for instruction-level traces.
python3 scripts/get_page.py pattern-register-pressure
python3 scripts/get_page.py technique-register-budgeting
python3 scripts/get_page.py technique-occupancy-tuningSynthesis: diagnose with --save-temps ISA dump or rocprof-compute VGPR-pressure section; mitigations from the technique pages.
python3 scripts/query.py --repo triton-amd --tag mfma-schedulingpython3 scripts/get_page.py migration-wgmma-to-mfma
python3 scripts/get_page.py migration-tma-to-buffer-loads
python3 scripts/get_page.py migration-cuda-to-hipSynthesis: TMA has no direct equivalent — use buffer_load_dwordx4 + async direct-to-LDS; WGMMA → MFMA tile mapping table from the migration page.