mayocream/koharu

App crashes instantly on startup with AMD RDNA 4 (RX 9070) + ROCm 7.1 due to ZLUDA crash

已關閉

#754 建立於 2026年6月4日

 (2 則留言) (0 個反應) (0 位負責人)Rust (257 個分叉)github user discovery
amdhelp wantedzluda

倉庫指標

星標
 (4,568 顆星)
PR 合併指標
 (平均合併 5天 11小時) (30 天內合併 15 個 PR)

描述

Describe the bug

Koharu crashes instantly (closes immediately without showing the GUI or logging Rust panics) when launched on a system with the new AMD RX 9070 (RDNA 4) and HIP SDK 7.1.

The issue is caused by the bundled ZLUDA version attempting to initialize the CUDA context on an unsupported driver (ROCm 7.1), resulting in a fatal Access Violation (0xc0000005) deep inside the AMD/ZLUDA JIT compiler.

Workaround Found

Since the crash happens before Rust can catch it (Hard Crash in C/C++ libraries), the app just dies. I had to manually compile a custom build of Koharu setting false in zluda.rs package_enabled function and enabling CPU multithreading (RAYON_NUM_THREADS="16") to make the app usable.

Feature Request

Please implement a hardware/driver check before blindly injecting ZLUDA. If hipInfo detects an RDNA 4 card (gfx12xx) or ROCm 7+, Koharu should automatically fallback to the CPU backend instead of attempting to load ZLUDA and crashing the entire application.

Bonus

Reported issue to ZLUDA https://github.com/vosen/ZLUDA/issues/646

Environment

  • OS: Windows 11
  • Koharu Version: 0.59.2
  • GPU: AMD Radeon RX 9070 16GB

貢獻者指南