-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add new container with more build utils (#5083)
New container comes pre-installed with CUDA (current version is 11.4.2) and ROCm 4.5, as well as other SYCL dependencies. This is to support other configurations in GitHub Actions environment.
- Loading branch information
1 parent
21b1530
commit e560dfe
Showing
4 changed files
with
67 additions
and
9 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
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,29 @@ | ||
FROM nvidia/cuda:11.4.2-devel-ubuntu20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
USER root | ||
|
||
# Install SYCL prerequisites | ||
COPY scripts/install_build_tools.sh /install.sh | ||
RUN /install.sh | ||
|
||
# Install AMD ROCm | ||
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 | ||
|
||
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
apt update && apt install -yqq \ | ||
build-essential \ | ||
cmake \ | ||
ninja-build \ | ||
ccache \ | ||
git \ | ||
python3 \ | ||
python3-distutils \ | ||
python-is-python3 |