stable-diffusion-rocm-docker icon indicating copy to clipboard operation
stable-diffusion-rocm-docker copied to clipboard

Dose it work with WSL?

Open Promisin opened this issue 2 years ago • 1 comments

I try this docker with WSL2 on win11 22H2. And after executing drun --name stable-diffusion l1naforever/stable-diffusion-rocm:latest this line, I get error message down below.

docker: Error response from daemon: error gathering device information while adding custom device "/dev/kfd": no such file or directory.

Dose it mean that this docker dosen't take effect on the virtual machines? Or there are just something wrong with WSL.

Promisin avatar Oct 19 '22 18:10 Promisin

Hey, I don't think it would. NVIDIA CUDA works on WSL2 by offering a WSL-specific CUDA driver. There is an AMD driver for video acceleration in WSL, but I'm not certain it would expose the same video device to the guest (/dev/kfd). Do you have the driver installed? I'd suggest trying the Radeon WSL driver first, to see if it exposes the KFD device at all.

l1na-forever avatar Oct 27 '22 23:10 l1na-forever