# rocm/legacy-rocm-build architecture

> Architecture diagram of the GitHub repository rocm/legacy-rocm-build, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rocm/legacy-rocm-build
- Repository: https://github.com/rocm/legacy-rocm-build

## Overview

ROCm is an AMD GPU-computing software-stack repository whose checked-in runtime is primarily release and analysis automation around externally hosted ROCm components. The principal maintainer workflow is: run the tagging CLI, read the release manifest and GitHub repositories, parse library changelogs, then create tags, releases, and pull requests. Separate precision and manifest tools compare versions and fetch upstream evidence. The repository also publishes documentation for installation, compatibility, programming, and component discovery. The graph reflects sampled tooling and documented capabilities; most GPU libraries themselves are external.

Main entry points: [`tools/autotag/tag_script.py`](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/tag_script.py) (Tagging CLI), [`docs/index.md`](https://github.com/rocm/legacy-rocm-build/blob/develop/docs/index.md) (ROCm Documentation), [`tools/autotag/util/release_data.py`](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/release_data.py) (Release Bundles), [`tools/precision-support/manifest_diff.py`](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/precision-support/manifest_diff.py) (Manifest Diff)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_release["Release Automation"]
  node_tag_cli["Tagging CLI<br/>[tag_script.py]"]
  node_manifest["Release Manifest<br/>[default.xml]"]
  node_bundle_factory["Release Bundles<br/>[release_data.py]"]
  node_release_lib["Library Release<br/>[release_data.py]"]
  node_changelog["Changelog Builder<br/>[changelog.py]"]
  node_templates["Release Templates<br/>[changelog.jinja]"]
end

subgraph group_analysis["Release Analysis"]
  node_precision_cli["Precision Fetcher<br/>[precision_fetch.py]"]
  node_manifest_diff["Manifest Diff<br/>[manifest_diff.py]"]
end

subgraph group_docs["ROCm Documentation"]
  node_docs_home["ROCm Documentation<br/>[index.md]"]
  node_component_catalog["Component Catalog<br/>[core.rst]"]
  node_compatibility["Compatibility Matrix"]
  node_installation["Installation Guides<br/>[rocm.rst]"]
  node_programming["HIP Programming"]
end

node_maintainer(("ROCm Maintainer"))
node_developer(("GPU Developer"))
node_github["GitHub Services"]

node_maintainer -->|"runs"| node_tag_cli
node_tag_cli -->|"reads"| node_manifest
node_tag_cli -->|"builds bundles"| node_bundle_factory
node_bundle_factory -->|"reads repositories"| node_github
node_bundle_factory -->|"assembles releases"| node_release_lib
node_tag_cli -->|"builds changelog"| node_changelog
node_changelog -->|"loads template"| node_templates
node_tag_cli -->|"invokes release"| node_release_lib
node_release_lib -->|"creates releases"| node_github
node_maintainer -->|"runs"| node_precision_cli
node_precision_cli -->|"fetches sources"| node_github
node_maintainer -->|"runs"| node_manifest_diff
node_manifest_diff -->|"parses"| node_manifest
node_manifest_diff -->|"fetches manifests"| node_github
node_developer -->|"consults"| node_docs_home
node_docs_home -->|"links components"| node_component_catalog
node_docs_home -->|"links support"| node_compatibility
node_docs_home -->|"links installation"| node_installation
node_docs_home -->|"links programming"| node_programming

click node_tag_cli "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/tag_script.py"
click node_manifest "https://github.com/rocm/legacy-rocm-build/blob/develop/default.xml"
click node_bundle_factory "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/release_data.py"
click node_release_lib "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/release_data.py"
click node_changelog "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/changelog.py"
click node_templates "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/templates/changelog.jinja"
click node_precision_cli "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/precision-support/precision_fetch.py"
click node_manifest_diff "https://github.com/rocm/legacy-rocm-build/blob/develop/tools/precision-support/manifest_diff.py"
click node_docs_home "https://github.com/rocm/legacy-rocm-build/blob/develop/docs/index.md"
click node_component_catalog "https://github.com/rocm/legacy-rocm-build/blob/develop/docs/components/core.rst"
click node_compatibility "https://github.com/rocm/legacy-rocm-build/blob/develop/docs/compatibility/compatibility-matrix.rst"
click node_installation "https://github.com/rocm/legacy-rocm-build/blob/develop/docs/install/rocm.rst"
click node_programming "https://github.com/rocm/legacy-rocm-build/blob/develop/docs/reference/hip-programming.rst"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tag_cli,node_manifest,node_bundle_factory,node_release_lib,node_changelog,node_templates toneBlue
class node_precision_cli,node_manifest_diff toneAmber
class node_docs_home,node_component_catalog,node_compatibility,node_installation,node_programming toneMint
class node_maintainer,node_developer,node_github toneIndigo
```

## Components

### Release Automation

- [Tagging CLI](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/tag_script.py): `tools/autotag/tag_script.py`
- [Release Manifest](https://github.com/rocm/legacy-rocm-build/blob/develop/default.xml): `default.xml`
- [Release Bundles](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/release_data.py): `tools/autotag/util/release_data.py`
- [Library Release](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/release_data.py): `tools/autotag/util/release_data.py`
- [Changelog Builder](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/util/changelog.py): `tools/autotag/util/changelog.py`
- [Release Templates](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/autotag/templates/changelog.jinja): `tools/autotag/templates/changelog.jinja`

### Release Analysis

- [Precision Fetcher](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/precision-support/precision_fetch.py): `tools/precision-support/precision_fetch.py`
- [Manifest Diff](https://github.com/rocm/legacy-rocm-build/blob/develop/tools/precision-support/manifest_diff.py): `tools/precision-support/manifest_diff.py`

### ROCm Documentation

- [ROCm Documentation](https://github.com/rocm/legacy-rocm-build/blob/develop/docs/index.md): `docs/index.md`
- [Component Catalog](https://github.com/rocm/legacy-rocm-build/blob/develop/docs/components/core.rst): `docs/components/core.rst`
- [Compatibility Matrix](https://github.com/rocm/legacy-rocm-build/blob/develop/docs/compatibility/compatibility-matrix.rst): `docs/compatibility/compatibility-matrix.rst`
- [Installation Guides](https://github.com/rocm/legacy-rocm-build/blob/develop/docs/install/rocm.rst): `docs/install/rocm.rst`
- [HIP Programming](https://github.com/rocm/legacy-rocm-build/blob/develop/docs/reference/hip-programming.rst): `docs/reference/hip-programming.rst`

### Other components

- **ROCm Maintainer**
- **GPU Developer**
- **GitHub Services**

## Connections

- ROCm Maintainer → Tagging CLI: runs
- Tagging CLI → Release Manifest: reads
- Tagging CLI → Release Bundles: builds bundles
- Release Bundles → GitHub Services: reads repositories
- Release Bundles → Library Release: assembles releases
- Tagging CLI → Changelog Builder: builds changelog
- Changelog Builder → Release Templates: loads template
- Tagging CLI → Library Release: invokes release
- Library Release → GitHub Services: creates releases
- ROCm Maintainer → Precision Fetcher: runs
- Precision Fetcher → GitHub Services: fetches sources
- ROCm Maintainer → Manifest Diff: runs
- Manifest Diff → Release Manifest: parses
- Manifest Diff → GitHub Services: fetches manifests
- GPU Developer → ROCm Documentation: consults
- ROCm Documentation → Component Catalog: links components
- ROCm Documentation → Compatibility Matrix: links support
- ROCm Documentation → Installation Guides: links installation
- ROCm Documentation → HIP Programming: links programming
