RTX 4080 / NVIDIA 621.01: the corpus's two largest compute pipelines fail to compile (NVVM), a few take 8-16 GB and up to 26 min, and --jobs 14 crashed the driver

Aperta
#884 22 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

The payload points at vk_pipeline_check and the pipelines stage, where --jobs now reaches the checker (#641), and at the OpSwitch chunking from commit d7cbc3e. Start by reading how concurrent compiles are scheduled for very large modules. Reproducing the NVVM failure needs the same GPU and driver, so no simple test is named. Done would mean the two compute pipelines compile on NVIDIA and peak memory stays within the machine's RAM, which the issue does not define in full.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The full shader corpus from my own 1.0.2.1 copy, translated at 91b36cf with --wave64-emulate (26503/26503 pass spirv-val, see #539), run through vk_pipeline_check on an RTX 4080 (NVIDIA 621.01, Windows 10 22H2, 32 GB RAM):

1. Two compute pipelines fail on NVIDIA: NVVM compilation failed: 3. They are #539's two shaders, the two largest modules in the corpus:

sorted-index position words blocks OpSwitch largest switch result alone (--jobs 1)
20946 15,086,959 44,048 4 16,000 cases NVVM compilation failed: 3 after 411 s, peak 2.8 GB
22428 15,054,923 43,829 4 16,000 cases NVVM compilation failed: 3 after 401 s, peak 11.2 GB

Corpus for scale: median 43,243 words, p99 1,241,960. These are the modules where d7cbc3e now splits the dispatch OpSwitch into chunks of 16,000; they pass spirv-val but NVIDIA's compiler gives up on them. (On main 4a36bb1 they no longer reach the driver at all: since #755 they exceed the SPIR-V id bound, see #881. So these driver numbers are from 91b36cf.)

2. A few compute pipelines need minutes and gigabytes each:

position words blocks OpSwitch time alone peak RAM
20767 7,980,747 46,112 0 1,585 s 15.9 GB
22496 2,010,092 4,251 1 (3,279 cases) 772 s 9.0 GB
21097 1,765,803 4,109 1 (3,137 cases) 622 s 8.0 GB

In the full run, 78 pipelines took 60 s or more (45 compute, 33 vertex), 29 took 120 s or more, 8 took 300 s, 6 took 600 s, and 2 took 900 s.

3. With --jobs 14 the driver crashed. After 23,250 of 26,503 pipelines (106 min), vk_pipeline_check.exe exited with 0xC0000005. The Windows event log puts the fault in nvgpucomp64.dll 32.0.16.2101. At that moment the four heavy compute pipelines above were compiling side by side; together they need about 44 GB alone, on a 32 GB machine. So running out of memory inside the driver is the likely cause. That's an inference: memory wasn't recorded at the crash, and none of them crashed when compiled one at a time. A checkpoint cache (3.0 GB) had been saved 4 minutes earlier.

Possible directions, for whoever owns them: a different lowering for these dispatch-loop giants; or, in vk_pipeline_check and the pipelines stage, fewer concurrent compiles for very large modules (#641 made --jobs reach the checker). Positions are in vk_pipeline_check's sorted index order; names and shader data stay on my machine. Happy to rerun anything on this GPU.

AI-assisted (Claude Code in OpenCode): it ran these on this machine.

Lingua principale
Python
Stelle
14.9k
Fork
1.2k
Merge medio
1h 58m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ItsNotRexed/Leonida

Tutte le issue di ItsNotRexed/Leonida

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.