Skip to content

Chore/clang tidy amdgpu#30

Merged
diptorupd merged 2 commits intoROCm:amd-integrationfrom
diptorupd:chore/clang-tidy-amdgpu
May 8, 2026
Merged

Chore/clang tidy amdgpu#30
diptorupd merged 2 commits intoROCm:amd-integrationfrom
diptorupd:chore/clang-tidy-amdgpu

Conversation

@diptorupd
Copy link
Copy Markdown
Collaborator

Adds .github/workflows/clang_tidy_amdgpu.yml plus three scripts under
.github/workflows/scripts_new/clang_tidy_amdgpu/ that:

  1. install clang-tidy-14 + the same apt deps as the upstream
    clang_tidy workflow,
  2. cmake-configure (no build) with QD_WITH_AMDGPU=ON and the other
    backends OFF, generating build/compile_commands.json,
  3. run clang-tidy only on quadrants/(codegen|platform|rhi|runtime)/
    amdgpu/ in parallel.
    To support (2), build.py grows a new configure action that reuses the
    toolchain bootstrap (clang, prebuilt LLVM 22.1.0, sccache, OS pkgs) from
    action_wheel but stops after cmake -B build -G Ninja.
    The workflow only runs on PRs that touch AMDGPU sources, the workflow
    itself, or .clang-tidy. The upstream clang_tidy.yml is left untouched
    and will be disabled on this fork via repo settings; an upstream PR
    proposing the same changes will follow separately.

Copy link
Copy Markdown

@npoulad1 npoulad1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread .github/workflows/linters.yml Outdated
@diptorupd diptorupd force-pushed the chore/clang-tidy-amdgpu branch from 8f654d9 to 0799144 Compare May 8, 2026 19:06
diptorupd added 2 commits May 8, 2026 15:30
Adds .github/workflows/clang_tidy_amdgpu.yml plus three scripts under
.github/workflows/scripts_new/clang_tidy_amdgpu/ that:

  1. install clang-tidy-14 + the same apt deps as the upstream
     clang_tidy workflow,
  2. cmake-configure (no build) with QD_WITH_AMDGPU=ON and the other
     backends OFF, generating build/compile_commands.json,
  3. run clang-tidy only on quadrants/(codegen|platform|rhi|runtime)/
     amdgpu/ in parallel.

To support (2), build.py grows a new `configure` action that reuses the
toolchain bootstrap (clang, prebuilt LLVM 22.1.0, sccache, OS pkgs) from
`action_wheel` but stops after `cmake -B build -G Ninja`.

The workflow only runs on PRs that touch AMDGPU sources, the workflow
itself, or .clang-tidy. The upstream clang_tidy.yml is left untouched
and will be disabled on this fork via repo settings; an upstream PR
proposing the same changes will follow separately.
@diptorupd diptorupd force-pushed the chore/clang-tidy-amdgpu branch from 0799144 to a8dffcb Compare May 8, 2026 20:30
@diptorupd diptorupd requested a review from deepsek May 8, 2026 20:31
Copy link
Copy Markdown
Collaborator

@deepsek deepsek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@diptorupd diptorupd merged commit e78bbe8 into ROCm:amd-integration May 8, 2026
3 checks passed
@diptorupd diptorupd deleted the chore/clang-tidy-amdgpu branch May 8, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants