Skip to content

Commit 7496edb

Browse files
committed
[CI] Add remaining Ubuntu 24.04 Docker containers
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 1b4e286 commit 7496edb

File tree

3 files changed

+54
-4
lines changed

3 files changed

+54
-4
lines changed

.github/workflows/sycl-containers.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ jobs:
4343
file: ubuntu2404_base
4444
tag: latest
4545
build_args: ""
46-
- name: Build Ubuntu Docker image
46+
- name: Build Ubuntu 22.04 Docker image
4747
file: ubuntu2204_build
4848
tag: latest
4949
build_args: ""
50+
- name: Build Ubuntu 24.04 Docker image
51+
file: ubuntu2404_build
52+
tag: latest
53+
build_args: ""
5054
- name: Build Ubuntu 24.04 oneAPI Docker image
5155
file: ubuntu2404_build_oneapi
5256
tag: latest
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM nvidia/cuda:12.6.3-devel-ubuntu24.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+
SHELL ["/bin/bash", "-ec"]
12+
13+
# Make the directory if it doesn't exist yet.
14+
# This location is recommended by the distribution maintainers.
15+
RUN mkdir --parents --mode=0755 /etc/apt/keyrings
16+
# Download the key, convert the signing-key to a full
17+
# keyring required by apt and store in the keyring directory
18+
RUN wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
19+
gpg --dearmor | tee /etc/apt/keyrings/rocm.gpg > /dev/null && \
20+
# Add rocm repo
21+
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.3/ubuntu noble main" \
22+
| tee /etc/apt/sources.list.d/amdgpu.list && \
23+
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.3 noble main" \
24+
| tee --append /etc/apt/sources.list.d/rocm.list && \
25+
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
26+
| tee /etc/apt/preferences.d/rocm-pin-600 && \
27+
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
28+
| tee /etc/apt/preferences.d/rocm-pin-600
29+
# Install the ROCM kernel driver
30+
RUN apt update && apt install -yqq rocm-dev && \
31+
apt-get clean && \
32+
rm -rf /var/lib/apt/lists/*
33+
34+
COPY scripts/create-sycl-user.sh /user-setup.sh
35+
RUN /user-setup.sh
36+
37+
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
38+
39+
USER sycl
40+
41+
ENTRYPOINT ["/docker_entrypoint.sh"]
42+

sycl/doc/developer/DockerBKMs.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,13 @@ The following containers are publicly available for DPC++ compiler development:
5959
* `unstable`: Intel drivers are downloaded from release/latest.
6060
The drivers are installed as it is, not tested or validated.
6161
- `ghcr.io/intel/llvm/ubuntu2204_build`: has development kits installed for
62-
NVidia/AMD and can be used for building DPC++ compiler from source with all
63-
backends enabled or for end-to-end testing with HIP/CUDA on machines with
64-
corresponding GPUs available.
62+
NVidia/AMD, is based on Ubuntu 22.04, and can be used for building DPC++
63+
compiler from source with all backends enabled or for end-to-end testing
64+
with HIP/CUDA on machines with corresponding GPUs available.
65+
- `ghcr.io/intel/llvm/ubuntu2404_build`: has development kits installed for
66+
NVidia/AMD, is based on Ubuntu 24.04, and can be used for building DPC++
67+
compiler from source with all backends enabled or for end-to-end testing
68+
with HIP/CUDA on machines with corresponding GPUs available.
6569
- `ghcr.io/intel/llvm/sycl_ubuntu2204_nightly`: contains the latest successfully
6670
built nightly build of DPC++ compiler. The image comes in three flavors:
6771
with pre-installed Intel drivers (`latest`), without them (`no-drivers`) and

0 commit comments

Comments
 (0)