How to access RyzenAI-npu1 from Docker container
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!
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.
That works! Thank you so much for your help!