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

OpenJ9: Don't version the cuda install folder #982

Merged
merged 2 commits into from
Mar 30, 2024
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
12 changes: 8 additions & 4 deletions pipelines/build/dockerFiles/cuda.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
ARG image
ARG cuda_ver=12.2.0
ARG cuda_distro=ubuntu20.04

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

# 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
COPY --from=nvidia/cuda:9.0-devel-ubuntu16.04 /usr/local/cuda-9.0/include /usr/local/cuda-9.0/include
COPY --from=nvidia/cuda:9.0-devel-ubuntu16.04 /usr/local/cuda-9.0/nvvm/include /usr/local/cuda-9.0/nvvm/include
RUN mkdir -p /usr/local/cuda/nvvm
# TEMP: Copy the header files from the local compile box to the container.
COPY --from=cuda /usr/local/cuda/include /usr/local/cuda/include
COPY --from=cuda /usr/local/cuda/nvvm/include /usr/local/cuda/nvvm/include

ENV CUDA_HOME="/usr/local/cuda-9.0"
ENV CUDA_HOME="/usr/local/cuda"