diff --git a/.github/workflows/sycl-linux-precommit.yml b/.github/workflows/sycl-linux-precommit.yml index 424ade23f1b08..a01382641e77a 100644 --- a/.github/workflows/sycl-linux-precommit.yml +++ b/.github/workflows/sycl-linux-precommit.yml @@ -79,7 +79,7 @@ jobs: - name: NVIDIA/CUDA runner: '["Linux", "cuda"]' image: ghcr.io/intel/llvm/ubuntu2204_build:latest - image_options: -u 1001 --gpus all --cap-add SYS_ADMIN + image_options: -u 1001 --gpus all --privileged --cap-add SYS_ADMIN target_devices: ext_oneapi_cuda:gpu - name: Intel runner: '["Linux", "gen12"]' diff --git a/.github/workflows/sycl-nightly.yml b/.github/workflows/sycl-nightly.yml index 1b921e21adc64..9a48dab48b046 100644 --- a/.github/workflows/sycl-nightly.yml +++ b/.github/workflows/sycl-nightly.yml @@ -144,7 +144,7 @@ jobs: name: CUDA E2E runner: '["aws_cuda-${{ github.run_id }}-${{ github.run_attempt }}"]' image: ghcr.io/intel/llvm/ubuntu2204_build:latest-0300ac924620a51f76c4929794637b82790f12ab - image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1 + image_options: -u 1001 --gpus all --privileged --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1 target_devices: ext_oneapi_cuda:gpu ref: ${{ github.sha }} merge_ref: '' diff --git a/.github/workflows/sycl-post-commit.yml b/.github/workflows/sycl-post-commit.yml index d1989b33c2484..56de2d8c524a6 100644 --- a/.github/workflows/sycl-post-commit.yml +++ b/.github/workflows/sycl-post-commit.yml @@ -76,7 +76,7 @@ jobs: - name: AMD/HIP runner: '["Linux", "amdgpu"]' image: ghcr.io/intel/llvm/ubuntu2204_build:latest-0300ac924620a51f76c4929794637b82790f12ab - image_options: -u 1001 --device=/dev/dri --device=/dev/kfd + image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged target_devices: ext_oneapi_hip:gpu reset_intel_gpu: false # Use static build because of shared lld packaging issue diff --git a/devops/containers/ubuntu2204_build.Dockerfile b/devops/containers/ubuntu2204_build.Dockerfile index 313b455dbc25b..37f2819903798 100644 --- a/devops/containers/ubuntu2204_build.Dockerfile +++ b/devops/containers/ubuntu2204_build.Dockerfile @@ -39,6 +39,8 @@ 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 +# Allow sycl user to run as sudo +RUN echo "sycl ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh