l1na-forever / stable-diffusion-rocm-docker

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

/dev/kfd not found #8

Open fmauffrey opened 1 year ago

fmauffrey commented 1 year ago

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 !

CaptainPickles commented 1 year ago

+1

rubenhak commented 1 year ago

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

VVurbanov commented 1 year ago

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

1714080902120 commented 1 year ago

+1

1714080902120 commented 1 year ago

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

it works. Thanks!

hydrian commented 1 year ago

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

jacksoneyton commented 10 months ago

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.