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

Revert cuda workaround in Semeru builds #176

Merged
merged 1 commit into from
Sep 13, 2023
Merged
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
17 changes: 11 additions & 6 deletions pipelines/build/dockerFiles/cuda.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
ARG image
ARG cuda_ver=12.2.0
ARG cuda_distro=ubuntu20.04

FROM $image
FROM nvidia/cuda:${cuda_ver}-devel-${cuda_distro} as cuda
FROM $image

# This line should be present here to let access to cuda_ver ARG in the following lines
ARG cuda_ver

# Install cuda headers https://github.com/eclipse/openj9/blob/master/buildenv/docker/mkdocker.sh#L586-L593
RUN mkdir -p /usr/local/cuda-9.0/nvvm
RUN mkdir -p /usr/local/cuda-$cuda_ver/nvvm
# TEMP: Copy the header files from the local compile box to the container.
# The Cuda 9.0 container is no longer available. See infra #8157.
COPY cuda-9.0/include /usr/local/cuda-9.0/include
COPY cuda-9.0/nvvm/include /usr/local/cuda-9.0/nvvm/include
COPY --from=cuda /usr/local/cuda/include /usr/local/cuda-${cuda_ver}/include
COPY --from=cuda /usr/local/cuda/nvvm/include /usr/local/cuda-${cuda_ver}/nvvm/include

ENV CUDA_HOME="/usr/local/cuda-9.0"
ENV CUDA_HOME="/usr/local/cuda-${cuda_ver}"