AMDMIGraphX icon indicating copy to clipboard operation
AMDMIGraphX copied to clipboard

Questions about installing MIGraphX on WSL2

Open Mhyho opened this issue 10 months ago • 3 comments

So I followed steps from https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/native_linux/install-migraphx.html, I installed Radeon software for WSL with ROCm and Pytouch strictly following those steps and everything works fine, and I start to try to install MIGraphX, because it says that the steps is the same with those using normal Linux, so I just installed docker for windows and the third step, build image using cloned script seems to success?

Image However the forth step "Run container" failed, when I copied the command and try to run it, it reports "docker: Error response from daemon: error gathering device information while adding custom device "/dev/kfd": no such file or directory."

Image I checked again if my steps went wrong, and the Q&A page, seems there is not a solution for me, so I am here for help, could anyone can help me?

Mhyho avatar Feb 20 '25 21:02 Mhyho

Hi @Mhyho. Internal ticket has been created to assist with your issue. Thanks!

ppanchad-amd avatar Feb 21 '25 16:02 ppanchad-amd

Hi @Mhyho, thanks for pointing this out. The documentation is incorrect here, WSL does not use /dev/kfd. Try --device=/dev/dxg instead; an example docker run on WSL can be found in Option B of https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-pytorch.html#install-methods.

schung-amd avatar Feb 21 '25 17:02 schung-amd

Hi @Mhyho, thanks for pointing this out. The documentation is incorrect here, WSL does not use /dev/kfd. Try --device=/dev/dxg instead; an example docker run on WSL can be found in Option B of https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-pytorch.html#install-methods.

Thank you, I will try it!

Mhyho avatar Feb 21 '25 17:02 Mhyho

Hi @Mhyho, did this work for you?

schung-amd avatar Apr 10 '25 20:04 schung-amd

Hi @Mhyho, did this work for you?

Sorry for not replying, It worked well. I was busy working on my dissertation since then so thank you very much.

Mhyho avatar Apr 11 '25 00:04 Mhyho

Thanks for confirming! I'll see if the docs need to be revised on this.

schung-amd avatar Apr 11 '25 14:04 schung-amd