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

docker: use ubuntu 20.04 with CUDA 11.2 #3502

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 0 additions & 14 deletions share/picongpu/dockerfiles/ubuntu-1604/compilers.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions share/picongpu/dockerfiles/ubuntu-1604/packages.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM nvidia/cuda:9.2-base
FROM nvidia/cuda:11.2.0-base-ubuntu20.04
MAINTAINER Axel Huebl <a.huebl@hzdr.de>
LABEL authors="Axel Huebl, René Widera"

# docker and image environment
ENV DEBIAN_FRONTEND=noninteractive \
FORCE_UNSAFE_CONFIGURE=1 \
SPACK_ROOT=/usr/local \
SPACK_EXTRA_REPO=/usr/local/share/spack-repo \
PIC_PACKAGE='picongpu@0.5.0+isaac backend=cuda'
PIC_PACKAGE='picongpu@develop+isaac backend=cuda target=x86_64' \
CUDA_PKG_VERSION="11-2"

# install minimal spack dependencies
# - adds gfortran for spack's openmpi package
Expand All @@ -24,11 +26,9 @@ RUN apt-get update && \
coreutils \
cuda-cupti-$CUDA_PKG_VERSION \
cuda-command-line-tools-$CUDA_PKG_VERSION \
cuda-core-$CUDA_PKG_VERSION \
cuda-cudart-dev-$CUDA_PKG_VERSION \
cuda-curand-dev-$CUDA_PKG_VERSION \
libcurand-dev-$CUDA_PKG_VERSION \
cuda-minimal-build-$CUDA_PKG_VERSION \
cuda-misc-headers-$CUDA_PKG_VERSION \
cuda-nvml-dev-$CUDA_PKG_VERSION \
curl \
environment-modules \
Expand All @@ -55,6 +55,7 @@ RUN curl -s -L https://github.com/spack/spack/archive/develop.tar.gz \
curl -s -L https://api.github.com/repos/ComputationalRadiationPhysics/spack-repo/tarball \
| tar xzC $SPACK_EXTRA_REPO --strip 1 && \
spack repo add --scope=system $SPACK_EXTRA_REPO
RUN spack install --only dependencies $PIC_PACKAGE
RUN spack install $PIC_PACKAGE && \
spack clean -a

Expand All @@ -81,7 +82,7 @@ RUN /bin/echo -e '#!/bin/bash -l\n' \
RUN /bin/bash -l -c ' \
pic-create $PICSRC/share/picongpu/examples/LaserWakefield /opt/picInputs/lwfa && \
cd /opt/picInputs/lwfa && \
pic-build -b "cuda:30;35;37;50;60;70" -c"-DCUDAMEMTEST_ENABLE=OFF" && \
pic-build -b "cuda:35;37;50;60;70;80" -c"-DCUDAMEMTEST_ENABLE=OFF" && \
rm -rf .build && \
chmod a+x /opt/picInputs/*/bin/* && \
chmod a+r -R /opt/picInputs/* && \
Expand All @@ -90,7 +91,7 @@ RUN /bin/bash -l -c ' \
RUN /bin/bash -l -c ' \
pic-create $PICSRC/share/picongpu/examples/KelvinHelmholtz /opt/picInputs/khi && \
cd /opt/picInputs/khi && \
pic-build -b "cuda:30;35;37;50;60;70" -c"-DCUDAMEMTEST_ENABLE=OFF" && \
pic-build -b "cuda:35;37;50;60;70;80" -c"-DCUDAMEMTEST_ENABLE=OFF" && \
rm -rf .build && \
chmod a+x /opt/picInputs/*/bin/* && \
chmod a+r -R /opt/picInputs/* && \
Expand All @@ -99,7 +100,7 @@ RUN /bin/bash -l -c ' \
RUN /bin/bash -l -c ' \
pic-create $PICSRC/share/picongpu/examples/FoilLCT /opt/picInputs/foil && \
cd /opt/picInputs/foil && \
pic-build -b "cuda:30;35;37;50;60;70" -c"-DCUDAMEMTEST_ENABLE=OFF" && \
pic-build -b "cuda:35;37;50;60;70;80" -c"-DCUDAMEMTEST_ENABLE=OFF" && \
rm -rf .build && \
chmod a+x /opt/picInputs/*/bin/* && \
chmod a+r -R /opt/picInputs/* && \
Expand Down
14 changes: 14 additions & 0 deletions share/picongpu/dockerfiles/ubuntu-2004/compilers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
compilers:
- compiler:
environment: {}
extra_rpaths: []
flags: {}
modules: []
operating_system: ubuntu20.04
paths:
cc: /usr/bin/gcc-9
cxx: /usr/bin/g++-9
f77: /usr/bin/gfortran-9
fc: /usr/bin/gfortran-9
spec: gcc@9.3.0
target: x86_64
28 changes: 28 additions & 0 deletions share/picongpu/dockerfiles/ubuntu-2004/packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
packages:
cuda:
buildable: false
externals:
- prefix: /usr/local/cuda
spec: cuda@11.2%gcc@9.3.0 arch=linux-ubuntu20.04-x86_64
pkg-config:
buildable: false
externals:
- prefix: /usr
spec: pkg-config@0.29.1%gcc@9.3.0 arch=linux-ubuntu20.04-x86_64
python:
buildable: false
externals:
- prefix: /usr
spec: python@2.7.18%gcc@9.3.0 arch=linux-ubuntu20.04-x86_64
openmpi:
version: [4.1.0]
variants: +cuda fabrics=auto
hwloc:
variants: +cuda
# install issue with gettext
# https://github.com/spack/spack/issues/11551
flex:
version: [2.6.3]
all:
providers:
mpi: [openmpi]