I have had no luck trying to get a fairly normal application stack working on a Ryzen 8745H that has worked on many other cpu/gpu platforms and even works on the same box running Windows thru the WSL emulator stack (which uses a different driver emulation level to access the gpu.)
TLDR = are there proof-of-concept onnx/yolov8 docker frameworks out there for the Ryzen Radeon 780M?
The fact that I have two indentical boxes sitting next to each other and the one running the app code in Windows under WSL emulation works makes me suspicious that this is a config or library issue not a capacity issue. It’s a real ugly fail though… gpu error messages on console and “gpu hang” reported back to app.
System:
-
AMD Ryzen 8745H / Radeon 780M-class iGPU
-
Ubuntu Server 26.04 bare metal
-
Kernel: 7.0.0-30-generic
-
Docker devices:
devices:
- /dev/kfd:/dev/kfd
- /dev/dri:/dev/dri
Tested:
- ROCm 10-based container
rocm/dev-ubuntu-24.04:7.2.1-complete
onnxruntime-migraphx==1.23.2
apt-get install migraphx
- BIOS UMA framebuffer increased from 2 GB to 8 GB
- Kernel args:
amdgpu.uni_mes=0 amdgpu.sched_policy=2
Things that work:
- FFmpeg VAAPI encode/decode
- CPU ONNX inference
- Small synthetic ONNX Conv model with ORT + MIGraphX from Go
Failure:
YOLOv8s/l ONNX models load and appear to compile with MIGraphX, then the GPU hangs:
ONNX session yolo:yolov8s: execution_provider=migraphx
HW Exception by GPU node-1 … reason :GPU Hang
These messages appear on console:
MES might be in unrecoverable state, issue a GPU reset
Failed to evict queue
MES failed to respond to msg=REMOVE_QUEUE
failed to unmap legacy queue
failed to remove hardware queue from MES
Thanks, good notes. Toward (2) I created an isolated minimal go executable that shows the intermittent failure w/ yolo model of any size on the gpu. I backed out the kernel changes.
Re (1) there’s a command line switch for cpu and cpu works w/o fail
As far as I can tell the versions should be OK :
ROCM: 7.2.1
MIGRAPHX:
migraphx 2.15.0.70201-81~24.04
migraphx-dev
ORT: 1.23.2
The failure is intermittent… I added a looping harness on the minimal test and the fail happens anywhere from the second inference attempt to the 40-somethingth. The dmesg messages after the wedge match what I pasted in before seeing on the console screen:
[ 533.549029] amdgpu: cp queue pipe 2 queue 2 preemption failed
[ 533.551073] amdgpu 0000:c4:00.0: Failed to evict process queues
Right now I can’t run this on the second identical machine b/c machine 2 is running windows w/ WSL and that’s a separate driver emulation stack which seems to work.
One further test I should note: running the same algorithm on python-pytorch only, not go-onnx… also crashes the gpu with the same hard wedge, kernel messages, etc.
A version-specific compatibility lead from your follow-up: your reported ORT 1.23.2 and MIGraphX 2.15.0 do match the ROCm 7.2.1 table, but Ubuntu 26.04 is not listed for that release. The 7.2.1 matrix lists Ubuntu 24.04.4 and 22.04.5. A 24.04 Docker image does not replace the host’s 7.0 kernel or host GPU driver, so matching the container’s packages alone does not establish a supported host stack.
There is also an important hardware nuance in the current 10.1 matrix: it now lists some Radeon 780M/gfx1103 APUs, including Ryzen 200-series parts, but I do not see the 8745H among the named APUs. Sharing a GPU name or LLVM target does not establish validation of that exact processor/OS combination. I would therefore not promise that upgrading ROCm fixes this machine.
Your PyTorch-only reproducer failing too is useful evidence: it weakens the idea that the Go wrapper or ONNX export is the only cause, without identifying the underlying fault. For an AMD bug report, I would attach that minimal loop, the model and iteration of failure, container digest, host kernel/driver versions, rocminfo output and the kernel log from the first fault. If you can compare a version-aligned host installation on spare storage, keep the same model and loop. I have not reproduced this GPU hang; this is a compatibility/reproduction lead, not a verified fix.