Skip to content

refactor(lint): GPU slab ptr-cast macro SLAB_FIELD — ADR-0800 - #194

Closed
lusoris wants to merge 1 commit into
masterfrom
worktree-agent-a00965aaca307979a
Closed

lusoris wants to merge 1 commit into
masterfrom
worktree-agent-a00965aaca307979a

Conversation

@lusoris

@lusoris lusoris commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Introduces core/src/feature/gpu_slab.h with SLAB_FIELD(dst, type, slab) macro that centralises the CUdeviceptr/uintptr_t→typed-pointer cast for GPU device-buffer carving.
  • Replaces 21 bare performance-no-int-to-ptr NOLINTs (violating ADR-0278) in integer_vif_hip.c, integer_vif_cuda.c, and integer_adm_cuda.c with SLAB_FIELD calls. The macro carries the single cited suppression at the definition site.
  • Also resolves pre-existing merge conflict markers in .semgrepignore (from 24bb5daf89) that caused semgrep to crash with exit code 2 on full-tree scans.

Deliverables checklist (ADR-0108)

  • Research digest: no digest needed: trivial lint refactor — no-alternatives
  • Decision matrix: in ADR-0800 §Alternatives considered
  • AGENTS.md invariant note: added to core/src/feature/cuda/AGENTS.md and core/src/feature/hip/AGENTS.md
  • Reproducer / smoke-test: meson setup core/build --wipe -Denable_cuda=false -Denable_sycl=false && ninja -C core/build && meson test -C core/build --suite=fast (49/49 pass)
  • changelog.d/fixed/0800-gpu-slab-nolint-citations.md
  • docs/rebase-notes.md entry: gpu-slab-nolint-citations (2026-05-29, ADR-0800)

State / bug tracking (ADR-0165)

No bug opened, closed, or ruled not-affecting. PR #127 finding resolved.

ffmpeg-patches (ADR-0186)

no ffmpeg-patches impact: internal header only, no public C API surface change.

🤖 Generated with Claude Code

@lusoris
lusoris enabled auto-merge (squash) May 29, 2026 11:27
@lusoris
lusoris disabled auto-merge May 29, 2026 11:43
@lusoris
lusoris marked this pull request as draft May 29, 2026 11:43
…-0800)

Introduce core/src/feature/gpu_slab.h with SLAB_FIELD(dst, type, slab)
which carries a single cited performance-no-int-to-ptr suppression
(ADR-0278 / ADR-0800) at the macro definition site.

Replace 21 bare NOLINT suppressions across:
  - core/src/feature/hip/integer_vif_hip.c  (15 init + 1 dispatch site)
  - core/src/feature/cuda/integer_vif_cuda.c (15 init + 1 dispatch site)
  - core/src/feature/cuda/integer_adm_cuda.c (NOLINTBEGIN/END block
    covering 7 slab-carving helper functions)

Also fix pre-existing merge conflict markers in .semgrepignore (from
commit 24bb5da) that caused semgrep to crash with exit code 2 on
full-tree scans.

No math change. Fast test suite: 49/49 pass (CPU-only build).
ADR-0214 GPU-parity gate unaffected (no kernel change).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lusoris
lusoris force-pushed the worktree-agent-a00965aaca307979a branch from 9bf2dba to cac7384 Compare May 29, 2026 12:13
@lusoris

lusoris commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

Contaminated (64 files) — needs reconstruction, skipping rebase per session policy

@lusoris
lusoris marked this pull request as ready for review May 31, 2026 13:34
@lusoris
lusoris marked this pull request as draft May 31, 2026 13:54
@lusoris
lusoris marked this pull request as ready for review May 31, 2026 14:01
@lusoris

lusoris commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

Closing as part of marathon cleanup 2026-05-31 (150 PRs merged today). Content likely superseded by sibling merges. Reopen if specific finding still needs work; bigger PRs preferred going forward per session feedback.

@lusoris lusoris closed this May 31, 2026
@lusoris
lusoris deleted the worktree-agent-a00965aaca307979a branch May 31, 2026 14:08
@lusoris
lusoris restored the worktree-agent-a00965aaca307979a branch May 31, 2026 18:42
@lusoris lusoris reopened this May 31, 2026
@lusoris
lusoris marked this pull request as draft May 31, 2026 18:49
@lusoris

lusoris commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #521 — bundled per 2026-06-01 triage. Both source PRs branched before sweep commit 24bb5da and produce unresolvable 3-way merge conflicts against master (40d192e). Branches preserved for future rebase.

@lusoris lusoris closed this Jun 1, 2026
lusoris added a commit that referenced this pull request Jun 3, 2026
…conflict

Both source PRs were authored before sweep commit 24bb5da and produce
unresolvable 3-way merge conflicts against master (40d192e). Adding the
CHANGELOG fragment to satisfy the AHEAD >= 1 constraint and document the
skipped items for future rebase/re-application.

- #161: testdata hygiene (ADR-0813) — SKIPPED-CONFLICT (119 hunk sites)
- #194: SLAB_FIELD macro refactor (ADR-0800) — SKIPPED-CONFLICT

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lusoris added a commit that referenced this pull request Jun 3, 2026
…conflict (#521)

Both source PRs were authored before sweep commit 24bb5da and produce
unresolvable 3-way merge conflicts against master (40d192e). Adding the
CHANGELOG fragment to satisfy the AHEAD >= 1 constraint and document the
skipped items for future rebase/re-application.

- #161: testdata hygiene (ADR-0813) — SKIPPED-CONFLICT (119 hunk sites)
- #194: SLAB_FIELD macro refactor (ADR-0800) — SKIPPED-CONFLICT

Co-authored-by: Lusoris <lusoris@pm.me>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@lusoris
lusoris deleted the worktree-agent-a00965aaca307979a branch June 4, 2026 08:32
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.

1 participant