Skip to content

[CI] Add container users to video group #5101

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

Merged
merged 3 commits into from
Dec 11, 2021
Merged

Conversation

alexbatashev
Copy link
Contributor

@alexbatashev alexbatashev commented Dec 8, 2021

Accessing /dev/dri device (GPU) requires user to be in video group. Change containers to include sycl user into the group.

Also change workflow to build containers in pre-commit without pushing to the registry to make sure containers are still buildable.

@alexbatashev alexbatashev marked this pull request as ready for review December 9, 2021 10:09
@alexbatashev alexbatashev requested a review from bader as a code owner December 9, 2021 10:09
@@ -9,6 +9,9 @@ on:
- sycl
paths:
- 'devops/containers/**'
pull_request:
paths:
- 'devops/containers/**'

jobs:
base_image_ubuntu2004:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All three jobs are the same - the only difference is the container name. Can we avoid duplication by applying re-usable workflows or matrix strategy here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably as far as I can go simplifying this file. Matrix builds do not support dependencies, and re-usable workflows would still require me to pass input parameters, which would be identical to what I did with actions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was aiming to avoid duplication of "push: ${{ github.event_name != 'pull_request' }}" condition.

@alexbatashev alexbatashev requested a review from bader December 11, 2021 13:59
@bader bader merged commit cd722fc into intel:sycl Dec 11, 2021
alexbatashev added a commit to alexbatashev/llvm that referenced this pull request Dec 12, 2021
* upstream/sycl:
  [CI] Add container users to video group (intel#5101)
  [CI] More typo fixes in Nightly build (intel#5088)
  Revert "[CI] Disable pack and upload steps (intel#5119)" (intel#5125)
  [SYCL] Translate ZE_RESULT_ERROR_INVALID_ARGUMENT error code from L0 RT (intel#5122)
  [SYCL][L0][Plugin] Call ZeCommandQueueCreate on demand (intel#5109)
  [SYCL] Switch to using blocking USM free for OpenCL GPU (intel#4928)
  [CI] Disable pack and upload steps (intel#5119)
  [SYCL] Disable submission of AssertInfoCopier for FPGA (intel#4780)
  [SYCL][SPIRV] Implement islessgreater with FOrdNotEqual instead (intel#5076)
  [SYCL] Fix typo in the name of the host-visible pool (intel#5073)
  [SYCL] Only call shutdown when DLL is being unloaded, not when process is terminating (intel#4983)
  [SYCL][CUDA][PI] Fix infinite loop when parallel_for range exceeds INT_MAX (intel#5095)
  [SYCL] Translate out-of-memory error codes from L0 RT (intel#5107)
  [SYCL] Fix a few warnings during build scripts configuration (intel#5082)
  [SYCL] Fix amdgpu openmp test (intel#5103)
  [SYCL] [FPGA] Create experimental headers for FPGA latency control (intel#5066)
  [SYCL][CUDA] Don't enqueue an event wait on same CUDA stream (intel#5099)
  Remove PR disable template (intel#5102)
  [BuildBot]Uplift CPU/FPGAEMU RT version (intel#5078)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants