Skip to content

Commit

Permalink
Merge branch 'master' into issue_981
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdipub authored Apr 3, 2024
2 parents 47a6e2b + 7725dff commit 5af668f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ class Build {
if (isPodman == 0) {
// Note: --userns was introduced in podman 4.3.0
// Add uid and gid userns mapping required for podman
dockerRunArg += " --userns keep-id:uid=1000,gid=1000"
dockerRunArg += " --userns keep-id:uid=1002,gid=1003"
}
context.docker.image(buildConfig.DOCKER_IMAGE).inside(buildConfig.DOCKER_ARGS+" "+dockerRunArg) {
buildScripts(
Expand Down
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"

0 comments on commit 5af668f

Please sign in to comment.