File tree Expand file tree Collapse file tree 4 files changed +67
-9
lines changed Expand file tree Collapse file tree 4 files changed +67
-9
lines changed Original file line number Diff line number Diff line change 35
35
ghcr.io/${{ github.repository }}/ubuntu2004_base:latest
36
36
context : ${{ github.workspace }}/devops
37
37
file : ${{ github.workspace }}/devops/containers/ubuntu2004_base.Dockerfile
38
+ build_image_ubuntu2004 :
39
+ if : github.repository == 'intel/llvm'
40
+ name : Build Ubuntu Docker image
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - name : Checkout
44
+ uses : actions/checkout@v2
45
+ with :
46
+ fetch-depth : 2
47
+ - name : Login to GitHub Container Registry
48
+ uses : docker/login-action@v1
49
+ with :
50
+ registry : ghcr.io
51
+ username : ${{ github.repository_owner }}
52
+ password : ${{ secrets.GITHUB_TOKEN }}
53
+ - name : Build and Push Container
54
+ uses : docker/build-push-action@v2
55
+ with :
56
+ push : true
57
+ tags : |
58
+ ghcr.io/${{ github.repository }}/ubuntu2004_build:${{ github.sha }}
59
+ ghcr.io/${{ github.repository }}/ubuntu2004_build:latest
60
+ context : ${{ github.workspace }}/devops
61
+ file : ${{ github.workspace }}/devops/containers/ubuntu2004_build.Dockerfile
38
62
# This job produces a Docker container with the latest versions of Intel
39
63
# drivers, that can be found on GitHub.
40
64
drivers_image_ubuntu2004 :
Original file line number Diff line number Diff line change @@ -4,15 +4,9 @@ ENV DEBIAN_FRONTEND=noninteractive
4
4
5
5
USER root
6
6
7
- RUN apt update && apt install -yqq \
8
- build-essential \
9
- cmake \
10
- ninja-build \
11
- ccache \
12
- git \
13
- python3 \
14
- python3-distutils \
15
- python-is-python3
7
+ # Install SYCL prerequisites
8
+ COPY scripts/install_build_tools.sh /install.sh
9
+ RUN /install.sh
16
10
17
11
# By default Ubuntu sets an arbitrary UID value, that is different from host
18
12
# system. When CI passes default UID value of 1001, some of LLVM tools fail to
Original file line number Diff line number Diff line change
1
+ FROM nvidia/cuda:11.4.2-devel-ubuntu20.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ USER root
6
+
7
+ # Install SYCL prerequisites
8
+ COPY scripts/install_build_tools.sh /install.sh
9
+ RUN /install.sh
10
+
11
+ # Install AMD ROCm
12
+ RUN apt install -yqq libnuma-dev wget gnupg2 && \
13
+ wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - && \
14
+ echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | tee /etc/apt/sources.list.d/rocm.list && \
15
+ apt update && \
16
+ apt install -yqq rocm-dev && \
17
+ apt-get clean && \
18
+ rm -rf /var/lib/apt/lists/*
19
+
20
+ # By default Ubuntu sets an arbitrary UID value, that is different from host
21
+ # system. When CI passes default UID value of 1001, some of LLVM tools fail to
22
+ # discover user home directory and fail a few LIT tests. Fixes UID and GID to
23
+ # 1001, that is used as default by GitHub Actions.
24
+ RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash
25
+
26
+ COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
27
+
28
+ ENTRYPOINT ["/docker_entrypoint.sh" ]
29
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ apt update && apt install -yqq \
4
+ build-essential \
5
+ cmake \
6
+ ninja-build \
7
+ ccache \
8
+ git \
9
+ python3 \
10
+ python3-distutils \
11
+ python-is-python3
You can’t perform that action at this time.
0 commit comments