[PR #130] [CLOSED] setup: Volta (V100, sm_70) and Turing as an experimental build path #2473

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/130
Author: @DingoOz
Created: 9/29/2026
Status: ❌ Closed

Base: main ← Head: v100-sm70


📝 Commits (1)

  • 96e0a6b setup: Volta (V100, sm_70) and Turing as an experimental build path

📊 Changes

2 files changed (+61 additions, -13 deletions)

View changed files

📝 README.md (+4 -0)
📝 setup.py (+57 -13)

📄 Description

Lets setup install Strata on a compute capability 7.x card (Tesla V100, RTX 20) instead of refusing it. The engine's kernels already have pre-sm_80 paths behind STRATA_EXPERIMENTAL_SM75; this makes setup use them.

Changes (setup.py)

  • GPU check: 7.x cards are accepted (below 7.0 is still refused), with a warning that this is experimental and the engine is compiled locally. The ready-made engine has no sm_70/75 code, so the existing "compiling instead" path takes over.
  • Build flag: -DSTRATA_EXPERIMENTAL_SM75=ON is passed when any chosen card is below sm_80.
  • CUDA toolkit: CUDA 13 dropped Volta. With an sm_70 card, find_nvcc picks the newest 12.x toolkit even if a 13.x is also installed, and the automatic install gets 12.9 instead of 13.0.
  • Host compiler (Linux): CUDA 12.x refuses a distribution's current GCC (for example CUDA 12.4 with GCC 15). When the default g++ is newer than the toolkit accepts, setup uses the newest gcc-N/g++-N it does accept for C, C++ and nvcc together. Setting only CMAKE_CUDA_HOST_COMPILER isn't enough: nvcc adds its GCC's library folder to the link line, so C++ objects built by GCC 15 then fail to link against GCC 12's libstdc++ (undefined reference to ...basic_string::_M_replace_cold). An existing CUDAHOSTCXX is left alone.

README.md gets a short note in "You need".

Tested

Tesla V100-PCIE-16GB, driver 580.178, CUDA 12.4, Ubuntu with GCC 15 as the default and GCC 12 installed:

  • engine 0.1.22 (this branch's main) builds for sm_70 through build_engine;
  • it serves Qwen3.8-Flash-Next IQ2_XS: correct answers, MTP drafts accepted, about 17-24 tok/s decode on short prompts;
  • a P100 (sm_60) in the same machine is still reported as not supported.

Not tested: Turing, Windows, the automatic CUDA 12.9 install.


🔄 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/130 **Author:** [@DingoOz](https://github.com/DingoOz) **Created:** 9/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `v100-sm70` --- ### 📝 Commits (1) - [`96e0a6b`](https://github.com/Niko1221/Strata/commit/96e0a6b680c8171d38333e5b6b4cd46020bc978c) setup: Volta (V100, sm_70) and Turing as an experimental build path ### 📊 Changes **2 files changed** (+61 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+4 -0) 📝 `setup.py` (+57 -13) </details> ### 📄 Description Lets setup install Strata on a compute capability 7.x card (Tesla V100, RTX 20) instead of refusing it. The engine's kernels already have pre-sm_80 paths behind `STRATA_EXPERIMENTAL_SM75`; this makes setup use them. ## Changes (`setup.py`) - **GPU check:** 7.x cards are accepted (below 7.0 is still refused), with a warning that this is experimental and the engine is compiled locally. The ready-made engine has no sm_70/75 code, so the existing "compiling instead" path takes over. - **Build flag:** `-DSTRATA_EXPERIMENTAL_SM75=ON` is passed when any chosen card is below sm_80. - **CUDA toolkit:** CUDA 13 dropped Volta. With an sm_70 card, `find_nvcc` picks the newest 12.x toolkit even if a 13.x is also installed, and the automatic install gets 12.9 instead of 13.0. - **Host compiler (Linux):** CUDA 12.x refuses a distribution's current GCC (for example CUDA 12.4 with GCC 15). When the default `g++` is newer than the toolkit accepts, setup uses the newest `gcc-N`/`g++-N` it does accept for **C, C++ and nvcc together**. Setting only `CMAKE_CUDA_HOST_COMPILER` isn't enough: nvcc adds its GCC's library folder to the link line, so C++ objects built by GCC 15 then fail to link against GCC 12's libstdc++ (`undefined reference to ...basic_string::_M_replace_cold`). An existing `CUDAHOSTCXX` is left alone. `README.md` gets a short note in "You need". ## Tested Tesla V100-PCIE-16GB, driver 580.178, CUDA 12.4, Ubuntu with GCC 15 as the default and GCC 12 installed: - engine 0.1.22 (this branch's `main`) builds for sm_70 through `build_engine`; - it serves Qwen3.8-Flash-Next IQ2_XS: correct answers, MTP drafts accepted, about 17-24 tok/s decode on short prompts; - a P100 (sm_60) in the same machine is still reported as not supported. Not tested: Turing, Windows, the automatic CUDA 12.9 install. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:29 +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#2473
No description provided.