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

Workaround in Dockerfile for PETSc gcc/clang issue in complex mode #2461

Merged
merged 1 commit into from
Nov 24, 2022
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
7 changes: 7 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ ARG PETSC_SLEPC_OPTFLAGS="-O2"
# Turn on PETSc and SLEPc debugging. "yes" or "no".
ARG PETSC_SLEPC_DEBUGGING="no"

# See https://gitlab.com/petsc/petsc/-/issues/1288
ARG PETSC_CPPFLAGS="-Dlogq=foobar"

# MPI variant. "mpich" or "openmpi".
ARG MPI="mpich"
# See https://github.com/pmodels/mpich/issues/5811
Expand Down Expand Up @@ -243,6 +246,7 @@ RUN apt-get -qq update && \
# Real, 32-bit int
python3 ./configure \
PETSC_ARCH=linux-gnu-real-32 \
--CPPFLAGS="${PETSC_CPPFLAGS}" \
--COPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--CXXOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--FOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
Expand All @@ -264,6 +268,7 @@ RUN apt-get -qq update && \
# Complex, 32-bit int
python3 ./configure \
PETSC_ARCH=linux-gnu-complex-32 \
--CPPFLAGS="${PETSC_CPPFLAGS}" \
--COPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--CXXOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--FOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
Expand All @@ -284,6 +289,7 @@ RUN apt-get -qq update && \
# Real, 64-bit int
python3 ./configure \
PETSC_ARCH=linux-gnu-real-64 \
--CPPFLAGS="${PETSC_CPPFLAGS}" \
--COPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--CXXOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--FOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
Expand All @@ -302,6 +308,7 @@ RUN apt-get -qq update && \
# Complex, 64-bit int
python3 ./configure \
PETSC_ARCH=linux-gnu-complex-64 \
--CPPFLAGS="${PETSC_CPPFLAGS}" \
--COPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--CXXOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
--FOPTFLAGS="${PETSC_SLEPC_OPTFLAGS}" \
Expand Down