Repository navigation
docs: link the README to the documentation site - #968
Conversation
The README is the PyPI long description (pyproject.toml), and PyPI renders relative links as written: on the amd-mori 1.2.5 page its eight relative links -- five guides, the IO benchmark, the IR README and the architecture diagram -- point at paths under pypi.org/project/amd-mori/ that do not exist. The README also never links https://rocm.github.io/mori/ (it appears only in the deprecated nightly note) and covers five of the site's pages. - Add a header with documentation, PyPI and nightly badges and a row of quick links to the site. - Point the documentation table at the published pages and cover the whole site: getting started, CCO and the fused operators, UMBP, the benchmarks, the API reference and the internals, next to the existing five topics. - Make the remaining links absolute: the IR README on GitHub, the architecture diagram on raw.githubusercontent.com. - tools/check_docs_links.py --markdown checks a Markdown file's links into the site against the rendered tree, and the docs workflow runs it on README.md, so a renamed page fails the docs build instead of leaving the README on a 404. The installation section the site includes from the README is unchanged. Co-Authored-By: Claude <[email protected]>
|
/ci-rerun |
|
Re-running MoRI CI test and CCO CI test against the current main. These runs predate CI routing, so the re-run runs every lane; push a commit to get a run that picks lanes from the changed files. |
Choosing an EP API and backend only concerns MORI-EP, so it does not belong in the header next to Installation and Quickstart. Drop it from the quick links and from the Getting started row, and link it from the MORI-EP row. Co-Authored-By: Claude <[email protected]>
|
GPU CI for Lanes follow the changed files. Adding |
Each change below was checked against the code it describes. Snippets and commands that fail as written: - Profiler (quickstart, EP guide, PROFILER, api/profiler): mori.cpp.get_debug_time_buf(op._handle) returns a (pointer, length) tuple, which export_to_perfetto rejects on .is_cuda. Use op.get_debug_time_buf() (and op.get_debug_time_offset()), which return tensors, and say ENABLE_PROFILER=ON must also be set at run time: the JIT only compiles the instrumented kernels then. - The inter-node EP script takes --cmd bench, not --bench. torchrun starts it once per node: it reads the node count from WORLD_SIZE and starts the node's ranks itself, so --nproc_per_node=8 was wrong. - bench_dispatch_combine.py spawns its own ranks; under torchrun x8 it ran 64 of them. Run it with python3. - SHMEM: MPI-communicator init cannot be done from Python (shmem_init_attr only takes a unique ID); show the C++ call instead. - IO benchmark: run build/tests/cpp/bench_engine, not the source path. - RDMA bandwidth page: name tools/profiler/analyze_ep_kernel_trace.py, not two scripts that do not exist. Values and facts: - SHMEM: MORI_SHMEM_MODE takes static_heap / vmm_heap / isolation (other values fall back to static_heap with a warning); the heap defaults to 4 GB / 16 GB; MORI_NUM_QP_PER_PE defaults to 4; IO, CCO and EPv2 do not use shmem. - EP: InterNodeV1LL's AUTO fallback is 256/128/8; manual IntraNode uses per-kernel launch defaults; combine() takes the dispatched weights; add IntraNodeLL (5) to both kernel-type tables; the bindings live in src/pybind/mori.cpp and pybind_ops.cpp, tests in test_dispatch_combine_*. - EPv2 defaults to the HIP backend on gfx125x. - IO: TCP exists only in simulation mode; BackendType also has FABRIC and OFI. Show the two MORI-IO diagrams: MyST does not copy images referenced by raw <img> tags, so both returned 404 on the site. Use Markdown image syntax. Also replace personal paths in the EP benchmark page. Co-Authored-By: Claude <[email protected]>
… code - PD benchmark: the build step ran `UMBP=ON bash build.sh`, but main has never had a build.sh and the switch is BUILD_UMBP. Build with `MORI_PYBUILD_DIR=build_$(hostname) BUILD_UMBP=ON pip install .`, which keeps each node's build in its own directory of the shared checkout -- exactly where the launchers already look for umbp_master. Say that UMBP needs gRPC and Protobuf, without which the build skips it with a warning. - api/umbp and the master-client demo: the CMake option is -DBUILD_UMBP=ON, not -DUMBP=ON. - api/umbp: StandaloneClient was removed. In standalone-process mode the client is StandaloneProcessClient, which forwards the external-KV queries to the node's server. - Tier-management benchmark: the per-peer backend limit is 16 (kMaxBackendsPerPeer), not eight. - runtime-env-vars and the master design note: UMBP_LOG_LEVEL is not read anywhere; MORI_UMBP_LOG_LEVEL takes trace..critical. - Single-node smoke test: drop UMBP_SSD_STAGING_BYTES and the troubleshooting entry built on ssd_staging_buffer_size; neither exists, and SSD staging is now a page arena that needs no sizing (SsdStagingPages). The script reads MORI_PIP_FLAGS and RUN_GSM8K, not MORI_BRANCH / SGLANG_BRANCH. Remove a personal skill path and personal example paths. Co-Authored-By: Claude <[email protected]>
- GemmAllReduceOp and GemmReduceScatterOp have no mode= parameter; only the other four operators have mode="split". - GemmAllReduceOp's quant is blockscale, mxfp8, mxfp8_raw or bf16 (added in #872, with a bf16-only scatter wire); "ptpc" raises. GemmAgOp's fp8 quants are described by the shared scale layouts rather than "exactly as GemmAllReduceOp". - Only the gemm_a2a, gemm_ag, ag_gemm and a2a_gemm constructors refuse a communicator without SDMA queues; for gemm_ar, self_test() is the only guard. - State the prerequisites the page left out: the GEMMs are FlyDSL kernels for gfx950, and FlyDSL is the optional [flydsl] extra. - The quantize_* calls in the examples are not MORI functions; say they stand for the caller's own quantiser. Co-Authored-By: Claude <[email protected]>
check_docs_links.py now also checks that every local <img src> in the rendered site exists. MORI-IO-GUIDE's two diagrams were raw <img> tags, which MyST does not copy into the build, so both were 404 on the site and nothing noticed; against the current main build the check reports exactly those two. The theme expanded every page's sections in every page's sidebar (~336 entries each). Collapse it to the page titles plus the current page's sections (23-63 entries). Co-Authored-By: Claude <[email protected]>
The fused GEMM + collective operators get their own row in the documentation table and their own entry under Applications, next to MORI-EP, instead of sharing MORI-CCO's row. The row links the guide; the per-operator pages come with the site's MORI-FUSED section (#973). Co-Authored-By: Claude <[email protected]>
|
Sorry for the close/reopen noise on this PR. I closed and reopened it only to re-trigger its CI on the current main. PR CI there runs just the tests that a PR's changed files need (#970), and a plain re-run would have kept the old workflow, which runs the full suite. It took two rounds, because the first reopen still picked up the old merge commit. Nothing in the PR was changed, and the earlier runs that were still queued were cancelled. CI for this PR now runs no GPU jobs: the changes are docs, a docs workflow and a docs-only script. The CI gate has passed. |
| <h1 align="center">MORI</h1> | ||
|
|
||
| <p align="center"> | ||
| <b>Mo</b>dular <b>R</b>DMA <b>I</b>nterface: building blocks and libraries for high-performance GPU communication on AMD Instinct™ GPUs |
The header keeps the title, the badges and the quick links. Co-Authored-By: Claude <[email protected]>
One conflict, in src/umbp/doc/runtime-env-vars.md, three rows of the pool-client table: - UMBP_EVICTION_MODE: main's row (#779 adds the keys passed to BatchTouch to what a node reports on its heartbeats). - UMBP_DRAM_READ_LEASE_MS, UMBP_SSD_READ_LEASE_MS: this branch's rows. main did not change them, and its code still matches them: both are read once per process through a function-local static in pool_platform.cpp, and UMBP_SSD_PREPARE_TIMEOUT_MS and lease_ttl_ms, which the old rows mention, appear nowhere in the code. tools/check_docs_links.py and docs.yml merged on their own: #968's --markdown README check sits next to this branch's image check. Co-Authored-By: Claude <[email protected]>
The README never links the documentation site at https://rocm.github.io/mori/, lists five of its 25 pages, and points at
docs/*.mdin the tree. It is also the PyPI long description (pyproject.toml), and PyPI renders relative links as written. On theamd-mori1.2.5 page, all eight of them point at paths underpypi.org/project/amd-mori/that do not exist: five guides, the IO benchmark, the IR README and the architecture diagram.README
Header: badges (documentation, PyPI, nightly) and quick links to the site's Installation, Quickstart and API pages.
Documentation: the section now opens with the site's address and says that the site tracks
main; each page title names the commit. The table points at the published pages and covers the whole site:24 of the 25 pages are linked.
MORI_IR_INTEGRATIONis left out because it only points at the IR README.Other links: the remaining relative links are now absolute, the IR README on GitHub and the architecture diagram on
raw.githubusercontent.com.MORI-FUSED: the fused GEMM + collective operators get their own row and their own entry under Applications, next to MORI-EP, instead of sharing MORI-CCO's row. The site's MORI-FUSED section is in docs: organize the site by component, add a UMBP overview, deploy the whole site #973.
docs/installation.mdincludes the README's installation section. That section is unchanged, so the site's rendering of it is too.A check for the new links
The page check in
tools/check_docs_links.pyskips absolute URLs. A renamed or removed page would therefore leave the README pointing at a 404 without anything failing.--markdown FILEnow also checks a Markdown file's links into the site against the same rendered tree, anchors included. It finds[text](url),<url>andhref="url"links. The site defaults tohttps://rocm.github.io/mori/and can be changed with--site-url.README.md, on every PR and push.--markdown, the tool behaves as before.Checks
python -m sphinx -E -n -W --keep-going -b html docs docs/_build/htmlpasses (Sphinx 8.1.3, MyST 4.0.1, Python 3.10).tools/check_docs_links.py docs/_build/html --markdown README.mdchecked 9943 local links in 27 pages and 30 README links into the site: 0 errors.readme_renderer[md], finds 8 relative links and images before this change and 0 after. The centered header survives its sanitizer.This branch briefly also carried fixes to site pages that no longer matched the code. They are reverted here (the branch's tree is back to its README-only state) and are proposed in #972. #972 also edits
tools/check_docs_links.py. I merged the two branches locally in both orders, with no conflicts.Not in this PR
The repository's About → Website field is empty. Setting it to https://rocm.github.io/mori/ would put the link in the sidebar of every GitHub page. That is a repository setting, which needs an admin.
🤖 Generated with Claude Code