[PR #1652] [CLOSED] Fix Linux CUDA builds with selectable GCC (#1645) #3582

Closed
opened 2026-11-07 15:29:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1652
Author: @CC-David-CC
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: fix/setup-gcc-1645


📝 Commits (2)

  • 03fa3b6 setup: allow selecting GCC for Linux CUDA builds (#1645)
  • 38c5009 test(setup): validate GCC selection with real CUDA 12 builds

📊 Changes

7 files changed (+369 additions, -8 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 docs/INSTALL.md (+16 -0)
➕ docs/SETUP_GCC_VALIDATION.txt (+104 -0)
📝 setup.py (+50 -7)
📝 tools/test_setup_engine_hash.py (+11 -0)
➕ tools/test_setup_gcc.py (+183 -0)
📝 tools/test_setup_unsloth.py (+3 -1)

📄 Description

Fixes #1645.

Adds --gcc gcc-14 (or STRATA_GCC) to select matching C, C++ and CUDA host compilers for the engine and GPU image encoder. Compiler changes invalidate reuse and use separate CMake build directories.

Validation on Ubuntu 24.04.5 / RTX 3070:

  • Reproduced CUDA 12.9 rejecting real GCC 15.
  • Actual setup.sh with GCC 14 built both binaries and completed setup.
  • GCC 14 -> 13 -> 14 transitions passed; original binary hashes restored.
  • Text inference passed. Default vision failed with little VRAM remaining; prefill and image tokens set to 128 passed.
  • Linux: 431 unit tests passed, 1 Windows-only skip. Windows: 432 unit tests passed (no Windows CUDA build).
  • Repaired three existing Linux test-isolation failures.

Full reproduction and limitations: docs/SETUP_GCC_VALIDATION.txt.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1652 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/setup-gcc-1645` --- ### 📝 Commits (2) - [`03fa3b6`](https://github.com/Niko1221/Strata/commit/03fa3b6075bf6fb2a5bb6aefb8ddde6eccdf20fe) setup: allow selecting GCC for Linux CUDA builds (#1645) - [`38c5009`](https://github.com/Niko1221/Strata/commit/38c50099dbfe4e3dcfdc81cbc44c8830a14410c5) test(setup): validate GCC selection with real CUDA 12 builds ### 📊 Changes **7 files changed** (+369 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `docs/INSTALL.md` (+16 -0) ➕ `docs/SETUP_GCC_VALIDATION.txt` (+104 -0) 📝 `setup.py` (+50 -7) 📝 `tools/test_setup_engine_hash.py` (+11 -0) ➕ `tools/test_setup_gcc.py` (+183 -0) 📝 `tools/test_setup_unsloth.py` (+3 -1) </details> ### 📄 Description Fixes #1645. Adds --gcc gcc-14 (or STRATA_GCC) to select matching C, C++ and CUDA host compilers for the engine and GPU image encoder. Compiler changes invalidate reuse and use separate CMake build directories. Validation on Ubuntu 24.04.5 / RTX 3070: - Reproduced CUDA 12.9 rejecting real GCC 15. - Actual setup.sh with GCC 14 built both binaries and completed setup. - GCC 14 -> 13 -> 14 transitions passed; original binary hashes restored. - Text inference passed. Default vision failed with little VRAM remaining; prefill and image tokens set to 128 passed. - Linux: 431 unit tests passed, 1 Windows-only skip. Windows: 432 unit tests passed (no Windows CUDA build). - Repaired three existing Linux test-isolation failures. Full reproduction and limitations: docs/SETUP_GCC_VALIDATION.txt. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3582
No description provided.