Ryzers icon indicating copy to clipboard operation
Ryzers copied to clipboard

How to access RyzenAI-npu1 from Docker container

Open Fangtangtang opened this issue 11 months ago • 2 comments

Hi,

I'm not sure if this is the right place to raise this issue. I want to use the RyzenAI-npu1 inside a Docker container. I guess I need to mount some host directories like /dev into the container, but I'm not sure how to do it properly.

Is there any reference or example for how to mount and use the RyzenAI-npu1 device inside Docker?

Thanks in advance!

Fangtangtang avatar Dec 21 '25 16:12 Fangtangtang

Hi @Fangtangtang, in ryzers we use a config.yaml file to to mount directories and setup extra runtime flags. To use the NPU you typically have to pass /dev/accel/accel0 to the docker runtime e.g. like in our XDNA package.

We have a number of NPU packages https://github.com/AMDResearch/Ryzers/tree/main/packages/npu - all of these use the XDNA package as a base with the NPU device passed through.

skalade avatar Dec 22 '25 14:12 skalade

That works! Thank you so much for your help!

Fangtangtang avatar Dec 23 '25 17:12 Fangtangtang