-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission problems? #4
Comments
The podman container never will have more permissions than the user that is running it, so I guess that your user outside the container isn't in |
Hi, thanks for your answer..
My System is a Ubuntu 22.04: Rocminfo on the machine outside docker: ` HSA System Attributes Runtime Version: 1.1 ==========
|
Try adding |
` martin@HAL:~/Projekte/rocm-pytorch-gfx803-docker$ podman run -it --device=/dev/kfd --device=/dev/dri --net=host --group-add=video --group-add=nogroup --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/sddocker:/sddocker localhost/rocm-pytorch-gfx803 (environ) sduser@HAL:~$ rocminfo That didnt help ;) |
💀 |
So to solve this issue, i have made an updated rootless version. Still bloated, but working. And as a demo it runs the stable diffusion webui. PS.: the issue above is the podman relative uid gid, which differs in the container. So that needs to be mapped first. It's a pain in the bottom for sure, hence came the rootless idea to get around this issue |
Oh, I always used this container in the rootless mode, as my podman is installed that way. Making it explicitly rootless is a good idea. |
Indeed, i was thinking about creating two subversion PS.: While i was testing this i was able to create 6 images successfully, however since then i am struggling with hardware failure, which causing opencl/rocm kernel error even if its just a clinfo/rocminfo. that part or my rx580 died. Now i had to order gpu |
That's sad to hear, probably the warranty is expired too. Well, I will probably merge your PR in a few hours to days max. Btw. you will order new RX 580 or more recent hardware? |
My new saphire rx6600 8GB just got delivered( sadly i am still working). $220 on stock clearance before the new 7600 get in stock. Rx6600 codename is gfx1032 and using with rocm is ok only possible if i force gfx1030/1031 to be recognised for pytorch. |
Nice |
``Hi,
After trying to follow the steps to use your docker i have, so far, havent found a solution on how to use rocmiinfo (or anything that accesses rocm anyway) through the docker.
Currently i try the following:
podman run -it --device=/dev/kfd --device=/dev/dri --net=host --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/sddocker:/sddocker localhost/rocm-pytorch-gfx803
And then trying this:
(environ) sduser@HAL:~$ rocminfo ROCk module is loaded Unable to open /dev/kfd read-write: Permission denied root is not member of "nogroup" group, the default DRM access group. Users must be a member of the "nogroup" group or another DRM access group in order for ROCm applications to run successfully.
Which kind of... surprises me that is raises "root" rather than sduser.
Any ideas how to solve this?
The text was updated successfully, but these errors were encountered: