Skip to content

AD Build fail with OpenMPI #659

Description

@amirkb91

Hi All,

It seems that the AD build fails with OpenMPI 4.0.0. I don't really know where the source of error is, but I suspect it's with CGNS and how it's handled by OpenMPI?

The error is as follows:

In file included from ../../../Common/lib/../src/../include/./mpi_structure.hpp:42:0,
from ../../../Common/lib/../src/../include/geometry_structure.hpp:41,
from ../../../Common/lib/../src/fem_cgns_elements.cpp:34:
/usr/local/include/mpi.h:2633:20: note: declared here
OMPI_DECLSPEC int MPI_Keyval_free(int *keyval)
^~~~~~~~~~~~~~~
Makefile:1504: recipe for target '../src/libSU2_AD_a-fem_cgns_elements.o' failed
make[2]: *** [../src/libSU2_AD_a-fem_cgns_elements.o] Error 1
make[2]: Leaving directory '/home/akb1r19/CFD_Solvers/SU2/SU2-6.2.0/SU2_AD/Common/lib'
Makefile:441: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/akb1r19/CFD_Solvers/SU2/SU2-6.2.0/SU2_AD'
Makefile:13: recipe for target 'install-SU2_AD' failed
make: *** [install-SU2_AD] Error 2

My pregonfigure command is:

export CXXFLAGS="-O3" && sudo ./preconfigure.py --enable-autodiff --prefix=/home/akb1r19/CFD_Solvers/SU2/Instldir --enable-mpi --with-cc=/usr/local/bin/mpicc --with-cxx=/usr/local/bin/mpicxx &>preconfig.out

Attaching the whole make output, and the preconfigure log files here too.
I have successfully been able to compile with AD on a cluster with Intel MPI (2017.4.239). I run the exact same commands and it compiles without issue. I haven't tried mpich yet to see if the error persists. Any thoughts?

Thanks,
Amir

config.log.ad.txt
config.log.base.txt
conf_SU2_AD.log.txt
conf_SU2_BASE.log.txt
make.out.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions