Skip to content

Commit

Permalink
Added the CodePlay plugins to the appropriate images.
Browse files Browse the repository at this point in the history
At the same time fixed a mistake in the CUDA image, making sure
that the CUDA libraries could actually be used in the builds.
  • Loading branch information
krasznaa committed Jun 20, 2024
1 parent 7680d98 commit f593e45
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ubuntu2004_cuda_oneapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN curl -SL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004
ARG CUDA_VERSION=12-4
RUN apt-get update && \
apt-get install -y cuda-compat-${CUDA_VERSION} cuda-cudart-${CUDA_VERSION} \
cuda-libraries-${CUDA_VERSION} \
cuda-libraries-dev-${CUDA_VERSION} \
cuda-command-line-tools-${CUDA_VERSION} \
cuda-minimal-build-${CUDA_VERSION} && \
apt-get clean -y
Expand All @@ -48,6 +48,14 @@ 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.1.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.
Expand Down
8 changes: 8 additions & 0 deletions ubuntu2004_rocm_oneapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ RUN apt-get update && \
apt-get install -y intel-oneapi-compiler-dpcpp-cpp-${ONEAPI_VERSION} && \
apt-get clean -y

# Install the CodePlay AMD plugin on top of oneAPI.
ARG CODEPLAY_PLUGIN_VERSION=2024.1.2
RUN curl -SL \
"https://developer.codeplay.com/api/v1/products/download?product=oneapi&variant=amd&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.
Expand Down

0 comments on commit f593e45

Please sign in to comment.