CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Meson reconfigure issue with Autodiff enabled (https://www.cfd-online.com/Forums/su2-installation/250480-meson-reconfigure-issue-autodiff-enabled.html)

Vishnu Sankar June 17, 2023 06:47

Meson reconfigure issue with Autodiff enabled
 
Hello there,


I encountered the following error when I tried enabling the autodiff feature in SU2:

Code:

ninja: Entering directory `build'
[1/4] Generating 'SU2_PY/pySU2/_pysu2ad.so.p/pySU2ad.cxx'.
FAILED: SU2_PY/pySU2/_pysu2ad.so.p/pySU2ad.cxx
/home/vishnu/swig/bin/swig -DHAVE_CGNS -DNDEBUG -DHAVE_MPI -DHAVE_METIS -DHAVE_PARMETIS -DHAVE_TECIO -DTECIOMPI -c++ -python -I/home/vishnu/anaconda3/lib/python3.8/site-packages/mpi4py/include -outdir /home/vishnu/SU2/build/SU2_PY/pySU2 -o ./SU2_PY/pySU2/_pysu2ad.so.p/pySU2ad.cxx ../SU2_PY/pySU2/pySU2ad.i
ninja: build stopped: subcommand failed.

I had no issue in setting up the directdiff feature. ninja builds it fine when only directdiff is enabled, similarly pysu2 also works fine, SU2 also works fine with mpi. I ran the Quickcase using a python script in parallel mode and it worked fine, I could also extract lift, drag and other values. But when I try enabling autodiff using meson and try to use ninja build, it fails completely and results in the error above:


Can someone comment on what's the issue here? I read somewhat similar issues in the github page (eg.: https://github.com/su2code/SU2/issues/1568 ) but my issue is slightly different I guess. Any help is much appreciated

--
Some additional details:
CentOS: 7.9.x
Python: 3.8.3
SU2: 7.5.1
OpenMPI: 4.1.4 & mpi4py: 3.1.4
Swig: 4.0.2

cfdkid June 17, 2023 09:05

What's your compiler?

Vishnu Sankar June 17, 2023 13:03

It's gcc 11.2.1 20220127 (Red Hat 11.2.1-9)


All times are GMT -4. The time now is 11:42.