AMD ROCm™ Software - GitHub Home
This report presents the forensic synthetic code analysis of ROCm/ROCm, a Shell project with 6,741 GitHub stars. SynthScan v2.0 examined 46,484 lines of code across 243 source files, recording 113 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 4.0 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 113 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/precision-support/manifest_diff.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 92 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 94 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 130 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 132 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 166 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 168 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 222 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/manifest_diff.py | 224 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 82 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 206 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 208 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 306 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 308 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 370 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 372 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 411 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/precision-support/precision_fetch.py | 413 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # MIT License | COMMENT |
| LOW | tools/rocm-build/build_lightning.sh | 441 | # and prebuild them. ARCH will include x86_64 but might also | COMMENT |
| LOW | tools/rocm-build/build_omnitrace.sh | 181 | # -DAMDDeviceLibs_DIR="${ROCM_INSTALL_PATH}/lib/asan/cmake/AMDDeviceLibs" \ | COMMENT |
| LOW | tools/rocm-build/build_rocprofiler-systems.sh | 181 | # -Dhip_DIR="${ROCM_INSTALL_PATH}/lib/asan/cmake/hip" \ | COMMENT |
| LOW | tools/rocm-build/envsetup.sh | 181 | export KFDTEST_ROOT=$THUNK_ROOT/tests/kfdtest | COMMENT |
| LOW | tools/rocm-build/build_rocm-gdb.sh | 301 | Requires: rocm-core, rocm-dbgapi | COMMENT |
| LOW | tools/rocm-build/build_rocm-gdb.sh | 381 | Prefix: ${ROCM_INSTALL_PATH} | COMMENT |
| LOW | tools/rocm-build/build_rdc.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/CMakeLists.txt | 1 | # MIT License | COMMENT |
| LOW | docs/conf.py | 41 | # | COMMENT |
| LOW | docs/conf.py | 61 | # elif in_admonition_section: | COMMENT |
| LOW | docs/sphinx/requirements.txt | 1 | # | COMMENT |
| LOW | docs/sphinx/requirements.txt | 21 | # sphinx | COMMENT |
| LOW | docs/sphinx/requirements.txt | 41 | # via ipykernel | COMMENT |
| LOW | docs/sphinx/requirements.txt | 61 | # via | COMMENT |
| LOW | docs/sphinx/requirements.txt | 81 | # via | COMMENT |
| LOW | docs/sphinx/requirements.txt | 101 | # via | COMMENT |
| LOW | docs/sphinx/requirements.txt | 121 | # via rocm-docs-core | COMMENT |
| LOW | docs/sphinx/requirements.txt | 141 | # sphinx | COMMENT |
| LOW | docs/sphinx/requirements.txt | 161 | # sphinx-book-theme | COMMENT |
| LOW | docs/sphinx/requirements.txt | 181 | # rocm-docs-core | COMMENT |
| LOW | docs/sphinx/requirements.txt | 201 | # referencing | COMMENT |
| LOW | docs/sphinx/requirements.txt | 221 | # sphinx-last-updated-by-git | COMMENT |
| LOW | docs/sphinx/requirements.txt | 261 | sqlalchemy==2.0.51 | COMMENT |
| LOW | docs/sphinx/requirements.txt | 281 | # nbformat | COMMENT |
| LOW | …eference/precision-support/precision-support-meta.yaml | 1 | # Precision-support meta YAML. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/rocm-build/compute_utils.sh | 42 | # Print message to stderr | COMMENT |
| LOW | tools/rocm-build/compute_utils.sh | 49 | # Print message to stderr and terminate current program | COMMENT |
| LOW | docs/conf.py | 201 | # Check if the branch is a docs/ branch | STRING |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 126 | # Check if release is a version reference in current document | COMMENT |
| LOW | …tension/rocm_docs_custom/csv_list_to_table/__init__.py | 29 | # Check if the file exists | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 72 | # Check if building from a tag | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 102 | # Check if there's an explicit override | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 242 | # Check if it's the format "text <target>" or just "target" | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 258 | # Check if this is a namespaced reference (e.g., "project:path") | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 261 | # Check if this target should be ignored | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 272 | # Check if this target should be remapped to a local path | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 339 | # Check if :widths: already exists in the options | COMMENT |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 386 | # Check if latex math fixing is enabled | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/autotag/tag_script.py | 299 | # Create a PR (rocm-x.x.x -> develop) to bring hotfixes into develop. | COMMENT |
| MEDIUM | tools/rocm-build/build_lightning.sh | 195 | # Initialize local variable. Does not include | COMMENT |
| MEDIUM | tools/rocm-build/build_rocm-gdb.sh | 281 | # Create the spec file. | COMMENT |
| MEDIUM | tools/rocm-build/build_rocm-gdb.sh | 359 | # Create the spec file. | COMMENT |
| MEDIUM | …/extension/rocm_docs_custom/remote_content/__init__.py | 640 | # Create a section node and parse content | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/autotag/tag_script.py | 272 | except Exception as e: | CODE |
| MEDIUM | tools/autotag/tag_script.py | 277 | print(f"Error processing {library.name} for ROCm {version}") | CODE |
| LOW⚡ | tools/autotag/tag_script.py | 305 | except Exception as err: | CODE |
| MEDIUM⚡ | tools/autotag/tag_script.py | 309 | print("Error processing the following libraries:", file=sys.stderr) | CODE |
| LOW | tools/autotag/util/release_data.py | 130 | except Exception: | CODE |
| LOW | tools/autotag/util/release_data.py | 333 | except Exception as e: | CODE |
| LOW | tools/autotag/util/release_data.py | 396 | except Exception: | CODE |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 92 | except Exception as e: | CODE |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 165 | except Exception as e: | CODE |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 238 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/precision-support/manifest_diff.py | 105 | CODE | |
| LOW | tools/autotag/tag_script.py | 20 | CODE | |
| LOW | tools/autotag/tag_script.py | 186 | CODE | |
| LOW | tools/autotag/util/changelog.py | 17 | CODE | |
| LOW | tools/autotag/util/defaults.py | 22 | CODE | |
| LOW | tools/autotag/util/defaults.py | 25 | CODE | |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 68 | CODE | |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 100 | CODE | |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 220 | CODE | |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 67 | CODE | |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 501 | CODE | |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 649 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/autotag/util/__init__.py | 1 | CODE | |
| LOW | tools/autotag/util/__init__.py | 1 | CODE | |
| LOW | tools/autotag/util/__init__.py | 2 | CODE | |
| LOW | docs/conf.py | 8 | CODE | |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 5 | CODE | |
| LOW | …tension/rocm_docs_custom/csv_list_to_table/__init__.py | 3 | CODE | |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/autotag/util/release_data.py | 366 | def create_release_bundle_data( | CODE |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 220 | def load_compatibility_matrix(app): | CODE |
| LOW | docs/extension/rocm_docs_custom/selector/__init__.py | 47 | def _register_selector_assets(env): | CODE |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 208 | def resolve_relative_doc_path(self, doc_path, source_file_path): | CODE |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 394 | def escape_underscores_in_text(match): | CODE |
| LOW | docs/extension/rocm_docs_custom/remote_yaml/__init__.py | 79 | def assemble_precision_support(app): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/autotag/util/release_data.py | 156 | fork.push(f"refs/heads/release:refs/heads/{self.branch}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/extension/rocm_docs_custom/utils.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | docs/extension/rocm_docs_custom/version_ref/__init__.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | …xtension/rocm_docs_custom/merge_components/__init__.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | docs/extension/rocm_docs_custom/remote_yaml/__init__.py | 26 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/rocm-build/compute_utils.sh | 413 | # Before calling create_wheel_packge, make sure to set the global variables | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/extension/rocm_docs_custom/remote_content/__init__.py | 530 | # After normpath, we need to check if the path is correct for the repository structure | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/autotag/util/release_data.py | 233 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 182 | # Usage: | STRING |