cp2k/tools/docker/Dockerfile.test_nvhpc
Matthias Krack 22d13e016e Add regression tester for new Intel ifx compiler
Test the latest Intel oneAPI HPC Toolkit version with ssmp and psmp
using the new ifx Fortran compiler. The existing Intel tests use
still the old ifort compiler.
2025-06-02 12:30:00 +02:00

47 lines
1.5 KiB
Text

#
# This file was created by generate_dockerfiles.py.
# Usage: podman build --shm-size=1g -f ./Dockerfile.test_nvhpc ../../
#
FROM ubuntu:22.04
# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
apt-transport-https \
ca-certificates \
dirmngr \
gnupg2 \
libopenblas-dev \
make \
nano \
python3 \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK
RUN echo 'deb https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' > /etc/apt/sources.list.d/nvhpc.list
# Install NVIDIA's HPC SDK but only keep the compilers to reduce Docker image size.
RUN apt-get update -qq && \
apt-get install -qq --no-install-recommends nvhpc-22-11 && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/22.11/math_libs && \
rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/22.11/comm_libs && \
rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/22.11/profilers && \
rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/22.11/cuda
ENV PATH ${PATH}:/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/bin
# Install CP2K using Linux-x86-64-nvhpc.ssmp.
WORKDIR /opt/cp2k
COPY ./Makefile .
COPY ./src ./src
COPY ./exts ./exts
COPY ./data ./data
COPY ./tests ./tests
COPY ./tools/build_utils ./tools/build_utils
COPY ./tools/regtesting ./tools/regtesting
COPY ./arch/Linux-x86-64-nvhpc.ssmp /opt/cp2k/arch/
# This takes over an hour!
RUN make -j ARCH=Linux-x86-64-nvhpc VERSION=ssmp cp2k