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

/dev/kfd not found

Open fmauffrey opened this issue 2 years ago • 7 comments

Hi, I followed the instructions but I got this error:

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

I installed the drivers as well as ROCm (for Ubuntu 22) but I still have the error. Any clue about this ? Thanks !

fmauffrey avatar Oct 29 '22 19:10 fmauffrey

+1

CaptainPickles avatar Dec 11 '22 21:12 CaptainPickles

I'm also seeing this on Ubuntu 22. ROCm 5.3 installed.

rubenhak avatar Jan 02 '23 01:01 rubenhak

Adding --privileged to the docker run command worked for me. I am on Windows.

VVurbanov avatar Jan 24 '23 10:01 VVurbanov

+1

1714080902120 avatar Mar 30 '23 13:03 1714080902120

Adding --privileged to the docker run command worked for me. I am on Windows.

it works. Thanks!

1714080902120 avatar Mar 30 '23 14:03 1714080902120

Documented in readme.md and docker-compose.yml. This can probably be closed.

hydrian avatar Apr 17 '23 14:04 hydrian

I am still getting this even with privileged... Ubuntu 22.04

docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 8G rocm/pytorch:latest --privileged
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kfd": no such file or directory.
ERRO[0000] error waiting for container:     

My googlefoo here is failing me.

jacksoneyton avatar Aug 26 '23 23:08 jacksoneyton