l1na-forever / stable-diffusion-rocm-docker

Stable Diffusion Docker image preconfigured for usage with AMD Radeon cards
120 stars 20 forks source link

Dose it work with WSL? #2

Open Promisin opened 1 year ago

Promisin commented 1 year ago

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.

l1na-forever commented 1 year ago

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.