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

Đang mở
#884 22 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
compilers, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
14.9k
Fork
1.2k
Merge trung bình
1 giờ 58 phút
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ItsNotRexed/Leonida

Tất cả issue của ItsNotRexed/Leonida

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.