Skip to content

Commit

Permalink
[CI][Container] Add sycl user to the render group (#15324)
Browse files Browse the repository at this point in the history
Render group is required for the sycl user to access the PVC card in the
docker container.

https://dgpu-docs.intel.com/driver/installation.html#installing-gpu-drivers
  • Loading branch information
uditagarwal97 committed Sep 9, 2024
1 parent eaa0b7d commit 114236f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions devops/containers/ubuntu2204_base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash
# Add sycl user to video/irc groups so that it can access GPU
RUN usermod -aG video sycl
RUN usermod -aG irc sycl

# group 109 is required for sycl user to access PVC card.
RUN groupadd -g 109 render
RUN usermod -aG render sycl

# Allow sycl user to run as sudo
RUN echo "sycl ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

Expand Down

0 comments on commit 114236f

Please sign in to comment.