-
Notifications
You must be signed in to change notification settings - Fork 848
[CI][1/3] Add Ubuntu 22 containers build #7106
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
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1de73b0
[CI] Uplift containers to Ubuntu 22
f4a02a2
Fix issues
761eabd
Attempt to fix issues
30d0b99
Temporary unblock containers push
e638a14
Fix issues
b27ef29
Rework change as addition rather than replacement
717ab02
Ignore sycl_containers change in pre-commit
6e70e4a
Merge branch 'sycl' into ubuntu22
1caf40a
Postpone preinstalled containers update until phase 2
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| FROM ubuntu:22.04 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| USER root | ||
|
|
||
| # Install SYCL prerequisites | ||
| COPY scripts/install_build_tools.sh /install.sh | ||
| RUN /install.sh | ||
|
|
||
| # By default Ubuntu sets an arbitrary UID value, that is different from host | ||
| # system. When CI passes default UID value of 1001, some of LLVM tools fail to | ||
| # discover user home directory and fail a few LIT tests. Fixes UID and GID to | ||
| # 1001, that is used as default by GitHub Actions. | ||
| RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash | ||
| # Add sycl user to video group so that it can access GPU | ||
| RUN usermod -aG video sycl | ||
| # Allow sycl user to run as sudo | ||
| RUN echo "sycl ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
|
|
||
| COPY actions/cached_checkout /actions/cached_checkout | ||
| COPY actions/cleanup /actions/cleanup | ||
| COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh | ||
| COPY scripts/install_drivers.sh /opt/install_drivers.sh | ||
|
|
||
| ENTRYPOINT ["/docker_entrypoint.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| FROM nvidia/cuda:11.7.0-devel-ubuntu22.04 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| USER root | ||
|
|
||
| # Install Nvidia keys | ||
| # https://forums.developer.nvidia.com/t/notice-cuda-linux-repository-key-rotation/212772 | ||
| RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub | ||
|
|
||
| # Install SYCL prerequisites | ||
| COPY scripts/install_build_tools.sh /install.sh | ||
| RUN /install.sh | ||
|
|
||
| # Install AMD ROCm | ||
| RUN printf 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600\n' | tee /etc/apt/preferences.d/rocm-pin-600 | ||
| RUN apt install -yqq libnuma-dev wget gnupg2 && \ | ||
| wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - && \ | ||
| echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | tee /etc/apt/sources.list.d/rocm.list && \ | ||
| apt update && \ | ||
| apt install -yqq rocm-dev && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # By default Ubuntu sets an arbitrary UID value, that is different from host | ||
| # system. When CI passes default UID value of 1001, some of LLVM tools fail to | ||
| # discover user home directory and fail a few LIT tests. Fixes UID and GID to | ||
| # 1001, that is used as default by GitHub Actions. | ||
| RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash | ||
| # Add sycl user to video group so that it can access GPU | ||
| RUN usermod -aG video sycl | ||
|
|
||
| COPY actions/cached_checkout /actions/cached_checkout | ||
| COPY actions/cleanup /actions/cleanup | ||
| COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh | ||
|
|
||
| ENTRYPOINT ["/docker_entrypoint.sh"] | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| ARG base_tag=latest | ||
| ARG base_image=ghcr.io/intel/llvm/ubuntu2204_base | ||
|
|
||
| FROM $base_image:$base_tag | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| ARG compute_runtime_tag=latest | ||
| ARG igc_tag=latest | ||
| ARG cm_tag=latest | ||
| ARG tbb_tag=latest | ||
| ARG fpgaemu_tag=latest | ||
| ARG cpu_tag=latest | ||
|
|
||
| RUN apt update && apt install -yqq wget | ||
|
|
||
| COPY scripts/get_release.py / | ||
| COPY scripts/install_drivers.sh / | ||
|
|
||
| RUN mkdir /runtimes | ||
| ENV INSTALL_LOCATION=/runtimes | ||
| RUN /install_drivers.sh --all | ||
|
|
||
| COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh | ||
|
|
||
| ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"] | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ARG base_tag=latest | ||
| ARG base_image=ghcr.io/intel/llvm/ubuntu2204_intel_drivers | ||
|
|
||
| FROM $base_image:$base_tag | ||
|
|
||
| COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh | ||
| RUN mkdir -p /opt/sycl | ||
| ADD llvm_sycl.tar.xz /opt/sycl | ||
|
|
||
| ENV PATH /opt/sycl/bin:$PATH | ||
| ENV LD_LIBRARY_PATH /opt/sycl/lib:$LD_LIBRARY_PATH | ||
|
|
||
| ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"] | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update nightly job to produce this image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to separate that next step from this PR.
First I need to make sure base/build/intel_drivers containers can be built and pushed successfully on schedule. I have a problem pushing these from pull_request task. These are basic containers that are used everywhere.
Then I can update nightly to actually use these containers and run testing on them, we'll need to see results and if they all look good. Nightly containers push depends on successful testing results.
Let me actually cut *_preinstalled.Dockerfile from this PR, as it will be needed on the next mentioned step, not on the first one.