Skip to content

Fix C++17 lambda capture breaking HIP server builds - #939

Merged
0xShug0 merged 1 commit into
mainfrom
fix/938-server-cxx17-capture
Oct 16, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/938-server-cxx17-capture

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Summary

Avoid capturing a structured-binding variable in the parallel server unload lambda, which is not valid C++17.

Apply the fix suggested by the reporter: iterate over the entry and declare ordinary id and model locals. Locking, queueing, deduplication and unload behavior are unchanged. No workflow or build-flag changes.

Fixes #938.

Validation

  • Reproduced the original error by checking the actual unmodified server translation unit with strict Clang C++17.
  • Patched translation unit passes the same check.
  • Clean CPU-only Debug build with Clang 12, -std=c++17 -Wpedantic -pedantic-errors: full model set, CLI, server, GGUF tool and enabled unit-test targets all compile.
  • Parallel server lifecycle test passes in both the existing Debug build and the clean Clang CPU build.
  • CPU-only server starts for device listing and reports the CPU backend.
  • HIP/ROCm toolchain is unavailable locally; no HIP inference claim.

@0xShug0
0xShug0 merged commit 337d429 into main Oct 16, 2026
11 checks passed
@0xShug0
0xShug0 deleted the fix/938-server-cxx17-capture branch October 16, 2026 21:40
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.

[Bug]: HIP server build fails with C++17 structured-binding lambda capture

1 participant