Skip to content
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

Update Ubuntu 22.04 CUDA machine to C++20 #118

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- ubuntu2204_exatrkx
- ubuntu2204
- ubuntu2204_cuda
- ubuntu2204_cuda_oneapi
- ubuntu2204_clang
- ubuntu2204_cpp17
- ubuntu2204_rocm_clang
Expand Down
2 changes: 1 addition & 1 deletion ubuntu2204_cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Mozilla Public License Version 2.0

# Start from the (at the time of writing) latest Acts Ubuntu 22.04 image.
FROM ghcr.io/acts-project/ubuntu2204:47
FROM ghcr.io/acts-project/ubuntu2204:55

# Some description for the image.
LABEL description="Ubuntu 22.04 with Acts dependencies and CUDA"
Expand Down
65 changes: 65 additions & 0 deletions ubuntu2204_cuda_oneapi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Docker machinery, part of the ACTS project
#
# (c) 2024 CERN for the benefit of the ACTS project
#
# Mozilla Public License Version 2.0

# Start from the (at the time of writing) latest Acts Ubuntu 24.04 image.
FROM ghcr.io/acts-project/ubuntu2204:55

# Some description for the image.
LABEL description="Ubuntu 22.04 with Acts dependencies and CUDA + oneAPI"
LABEL maintainer="Stephen Nicholas Swatman <[email protected]>"

# Add the Ubuntu 22.04 CUDA repository.
RUN curl -SL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
-o cuda-keyring.deb && \
dpkg -i cuda-keyring.deb && \
rm cuda-keyring.deb

# Install CUDA.
ARG CUDA_VERSION=12-4
RUN apt-get update && \
apt-get install -y cuda-compat-${CUDA_VERSION} cuda-cudart-${CUDA_VERSION} \
cuda-libraries-dev-${CUDA_VERSION} \
cuda-command-line-tools-${CUDA_VERSION} \
cuda-minimal-build-${CUDA_VERSION} && \
apt-get clean -y

# Set up the CUDA environment.
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
ENV PATH=/usr/local/cuda/bin:${PATH}
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
ENV CUDAHOSTCXX="clang++"
ENV CUDAFLAGS="-allow-unsupported-compiler"

# Set up the Intel package signing key.
RUN mkdir --parents --mode=0755 /etc/apt/keyrings && \
curl -SL https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | \
gpg --dearmor > /usr/share/keyrings/oneapi-archive-keyring.gpg

# Set up the oneAPI repository.
COPY oneapi.list /etc/apt/sources.list.d/

# Install oneAPI.
ARG ONEAPI_VERSION=2024.2
RUN apt-get update && \
apt-get install -y intel-oneapi-compiler-dpcpp-cpp-${ONEAPI_VERSION} && \
apt-get clean -y

# Install the CodePlay NVIDIA plugin on top of oneAPI.
ARG CODEPLAY_PLUGIN_VERSION=2024.2
RUN curl -SL \
"https://developer.codeplay.com/api/v1/products/download?product=oneapi&variant=nvidia&version=${CODEPLAY_PLUGIN_VERSION}" \
-o plugin.sh && \
sh plugin.sh --install-dir /opt/intel/oneapi --yes && \
rm plugin.sh

# Set up the oneAPI environment. Note that one *MUST* source the
# /opt/intel/oneapi/setvars.sh script to make the following work. Which has to
# be done in the respective CI scripts.
ENV CC="clang"
ENV CXX="clang++"
ENV SYCLCXX="clang++"
ENV SYCLFLAGS="-fsycl -fsycl-targets=nvidia_gpu_sm_75 -Wno-unknown-cuda-version"
1 change: 1 addition & 0 deletions ubuntu2204_cuda_oneapi/oneapi.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main
6 changes: 3 additions & 3 deletions ubuntu2404_rocm_oneapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN curl -SL \
# Set up the oneAPI environment. Note that one *MUST* source the
# /opt/intel/oneapi/setvars.sh script to make the following work. Which has to
# be done in the respective CI scripts.
ENV CC="icx"
ENV CXX="icpx"
ENV SYCLCXX="icpx"
ENV CC="clang"
ENV CXX="clang++"
ENV SYCLCXX="clang++"
ENV SYCLFLAGS="-fsycl -fsycl-targets=amd_gpu_gfx1031"
Loading