-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add remaining Ubuntu 24.04 Dockerfile (#16457)
This adds the remaining Dockerfiles we'll need for Ubuntu 24.04. There will be two more containers added to the workflow after this PR, I can't add them now because they require changes in this PR and CI doesn't use the files from precommit. --------- Signed-off-by: Sarnie, Nick <[email protected]> Co-authored-by: Alexey Bader <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 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,42 @@ | ||
FROM nvidia/cuda:12.6.3-devel-ubuntu24.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
USER root | ||
|
||
# Install SYCL prerequisites | ||
COPY scripts/install_build_tools.sh /install.sh | ||
RUN /install.sh | ||
|
||
SHELL ["/bin/bash", "-ec"] | ||
|
||
# Make the directory if it doesn't exist yet. | ||
# This location is recommended by the distribution maintainers. | ||
RUN mkdir --parents --mode=0755 /etc/apt/keyrings | ||
# Download the key, convert the signing-key to a full | ||
# keyring required by apt and store in the keyring directory | ||
RUN wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \ | ||
gpg --dearmor | tee /etc/apt/keyrings/rocm.gpg > /dev/null && \ | ||
# Add rocm repo | ||
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.3/ubuntu noble main" \ | ||
| tee /etc/apt/sources.list.d/amdgpu.list && \ | ||
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.3 noble main" \ | ||
| tee --append /etc/apt/sources.list.d/rocm.list && \ | ||
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \ | ||
| tee /etc/apt/preferences.d/rocm-pin-600 && \ | ||
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \ | ||
| tee /etc/apt/preferences.d/rocm-pin-600 | ||
# Install the ROCM kernel driver | ||
RUN apt update && apt install -yqq rocm-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY scripts/create-sycl-user.sh /user-setup.sh | ||
RUN /user-setup.sh | ||
|
||
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh | ||
|
||
USER sycl | ||
|
||
ENTRYPOINT ["/docker_entrypoint.sh"] | ||
|
This file contains 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