BEA_ROCm — ROCm + DX12 simultaneous coexistence on gfx1100 Windows — validated + open source

Following up on the gfx1100 Windows ROCm inference crash we’ve gone further than the original fix.

What BEA_ROCm is: A Python coexistence layer that lets ROCm AI inference (Ollama/llama.cpp) and an active DX12 game run on the same AMD RX 7900 GRE (gfx1100) simultaneously on Windows — without crashing.

What was solved (in order):

  • 0xc0000005 access violation in ggml-hip.dll — KV cache stream affinity + Flash Attention layout bug on Windows ROCm 6.x
  • SDMA engine contention between DX12 and HIP command queues
  • VRAM budget conflict (game + model competing for 16 GB)
  • LEDKeeper2/NTIOLib_x64.sys kernel driver destabilizing the AMD stack under BattlEye
  • AMD AGS library conflict with Adrenalin 26.6.1 + modified driver state
  • Adrenalin 26.x overlay telemetry racing HIP kernel launches

Live benchmark result (2026-06-14): 10/10 inference rounds completed alongside a live Siege DX12 session. GPU hit 95% utilization under combined load. Zero crashes.

Validation also confirmed cross-architecture: gfx1101 / RX 7700 XT / Ubuntu 24.04 — fix held, QLoRA training fully stabilized (hat tip to Jillian_Taylor).

The llama.cpp upstream PR (35-line patch, 2 files) is ready to submit. Happy to answer questions on any layer.

— Jeremy · BEATEK Holdings, LLC

1 Like

Hi, this is an amazing! Most people would have just blamed the ROCm driver and given up. The SDMA command queue fix is huge, since DX12 and HIP fighting for the same engine is a known cause for silent Windows crashes. This 35-line upstream PR is going to save so many Windows gamers from random GPU crashes. I also saw the update in your repo, thanks for sharing.

1 Like

Windows has DX12 + HIP wrestling for SDMA, Linux has Triton + HIP wrestling for MFMA/SDMA queues… why is everyone fighting for the same kernels across platforms :sob: :rofl:

1 Like