[GH-ISSUE #371] 0.1.31: qsa_prompt_attn_batch traps on sm_70 (V100) in a layer split: unspecified launch failure on the first prompt #176

Closed
opened 2026-11-04 01:40:40 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @AxalotLDev on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/371

Setup

  • GPUs: RTX 4080 SUPER (sm_89, CUDA0) + Tesla V100-SXM2-16GB (sm_70, CUDA1), layer split auto (layers 0-34 on CUDA0, 35-47 + head on CUDA1)
  • Engine 0.1.31 built with -DSTRATA_EXPERIMENTAL_SM60=ON (arch 70-real;89-real), CUDA 12.9, Linux, Docker
  • Model: Qwen3.8-Flash-Next IQ3_XXS native pack, expert_cache auto, kv int8, prefill auto (chunk 8192), context 262144

Symptom

The engine starts normally (session is up, expert cache filled, prompt path loans printed), then the first prefill of the first request kills it. Deterministic on every start. The engine log ends with:

strata serve: 771 MiB of VRAM free with everything loaded
prefill copy_i32: unspecified launch failure

exit code 1 (once SIGSEGV). 0.1.30 on the same rig and the same config reads 211k-token prompts without problems, so this is a 0.1.31 regression for sm_70 cards in a split.

Diagnosis

copy_i32 is not the culprit: the error is sticky and surfaces at the next check(). With CUDA_LAUNCH_BLOCKING=1 the failing kernel names itself:

qsa_prompt_attn_batch: unspecified launch failure

In src/kernels/cuda/qsa_prompt_attn.cu:

  • mma16816() compiles to __trap() for device code below sm_75 (#if !STRATA_PA_SM80 && (defined(__HIPCC__) || !defined(__CUDA_ARCH__) || __CUDA_ARCH__ < 750)), as the comment at the top of the file says;
  • the runtime guard in qsa_prompt_attn_batch (the #270 follow-ups b6bdc70 / d9cbe3c, new in 0.1.31) checks only the major version:
if (cc_major[dev] < 7) return false;
turing = cc_major[dev] < 8;

sm_70 has major 7, so it passes the guard, is classified as Turing, and launch<1> (the m16n8k8 tensor-core kernel) is launched on the V100. Every block hits __trap() -> "unspecified launch failure". Before 0.1.31 the guard was cc_major[dev] < 8, so sm_70 fell back to the old non-MMA kernel and everything worked.

The guard admits major 7, but the device code traps below 7.5: the minor version is what decides, and it is not consulted.

Reproduce

Any split rig with an sm_70 card (V100 / Titan V) as a stage GPU: start the engine, send any prompt. On a single-GPU rig with only an sm_70 card the same guard should fire the same way (not tested here).

Workaround used here

Building 0.1.30 for the split pair. A local patch to the guard (compare the full compute capability against 75 instead of the major against 7) makes 0.1.31 work on this rig, but I am reporting it so the guard can be fixed upstream; I have not tested whether other kernels added in 0.1.31 have the same major-only pattern (I checked qsa_select.cu, fused_gr.cu and native_qsa_score.cu, their guards look correct).

Originally created by @AxalotLDev on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/371 ## Setup - GPUs: RTX 4080 SUPER (sm_89, CUDA0) + Tesla V100-SXM2-16GB (sm_70, CUDA1), layer split auto (layers 0-34 on CUDA0, 35-47 + head on CUDA1) - Engine 0.1.31 built with `-DSTRATA_EXPERIMENTAL_SM60=ON` (arch `70-real;89-real`), CUDA 12.9, Linux, Docker - Model: Qwen3.8-Flash-Next IQ3_XXS native pack, `expert_cache auto`, `kv int8`, `prefill auto` (chunk 8192), context 262144 ## Symptom The engine starts normally (`session is up`, expert cache filled, prompt path loans printed), then the first prefill of the first request kills it. Deterministic on every start. The engine log ends with: ``` strata serve: 771 MiB of VRAM free with everything loaded prefill copy_i32: unspecified launch failure ``` exit code 1 (once SIGSEGV). 0.1.30 on the same rig and the same config reads 211k-token prompts without problems, so this is a 0.1.31 regression for sm_70 cards in a split. ## Diagnosis `copy_i32` is not the culprit: the error is sticky and surfaces at the next `check()`. With `CUDA_LAUNCH_BLOCKING=1` the failing kernel names itself: ``` qsa_prompt_attn_batch: unspecified launch failure ``` In `src/kernels/cuda/qsa_prompt_attn.cu`: - `mma16816()` compiles to `__trap()` for device code below sm_75 (`#if !STRATA_PA_SM80 && (defined(__HIPCC__) || !defined(__CUDA_ARCH__) || __CUDA_ARCH__ < 750)`), as the comment at the top of the file says; - the runtime guard in `qsa_prompt_attn_batch` (the #270 follow-ups b6bdc70 / d9cbe3c, new in 0.1.31) checks only the major version: ```cpp if (cc_major[dev] < 7) return false; turing = cc_major[dev] < 8; ``` sm_70 has major 7, so it passes the guard, is classified as Turing, and `launch<1>` (the m16n8k8 tensor-core kernel) is launched on the V100. Every block hits `__trap()` -> "unspecified launch failure". Before 0.1.31 the guard was `cc_major[dev] < 8`, so sm_70 fell back to the old non-MMA kernel and everything worked. The guard admits major 7, but the device code traps below 7.5: the minor version is what decides, and it is not consulted. ## Reproduce Any split rig with an sm_70 card (V100 / Titan V) as a stage GPU: start the engine, send any prompt. On a single-GPU rig with only an sm_70 card the same guard should fire the same way (not tested here). ## Workaround used here Building 0.1.30 for the split pair. A local patch to the guard (compare the full compute capability against 75 instead of the major against 7) makes 0.1.31 work on this rig, but I am reporting it so the guard can be fixed upstream; I have not tested whether other kernels added in 0.1.31 have the same major-only pattern (I checked qsa_select.cu, fused_gr.cu and native_qsa_score.cu, their guards look correct).
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

Thanks, confirmed: the host check compared only the major version (7) while the kernel needs sm_75. Fixed for the next release: an sm_70 card (V100) keeps the old prompt attention kernel, as in 0.1.30. sm_75 and newer cards choose exactly as before. This issue closes with the release.

<!-- gh-comment-id:5938541546 --> @Niko1221 commented on GitHub (Oct 1, 2026): Thanks, confirmed: the host check compared only the major version (7) while the kernel needs sm_75. Fixed for the next release: an sm_70 card (V100) keeps the old prompt attention kernel, as in 0.1.30. sm_75 and newer cards choose exactly as before. This issue closes with the release.
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

Fixed in 0.1.33: an sm_70 card keeps the old prompt attention kernel. Thanks!

<!-- gh-comment-id:5940769532 --> @Niko1221 commented on GitHub (Oct 1, 2026): Fixed in [0.1.33](https://github.com/Niko1221/Strata/releases/tag/v0.1.33): an sm_70 card keeps the old prompt attention kernel. Thanks!
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#176
No description provided.