CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > SU2

SU2 Parallel Build Install Issue

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2018, 12:38
Default SU2 Parallel Build Issue
New Member
Join Date: Dec 2018
Posts: 5
Rep Power: 4
jclegg is on a distinguished road
I've spent some time trying to compile the parallel build for SU2 without much success (not that familiar with this type of stuff) after having installed a working serial build. I have searched and troubleshot but am still ending up having my lines repeated as the processors each tackle the problem individually rather than combine their efforts. I've seen in other posts that this means that I have not compiled it correctly but I do not know where to go to fix it.

Here is an example of the code being produced several times over:
---------------------- Local Time Stepping Summary ----------------------
MG level: 0 -> Min. DT: 0.0014005. Max. DT: 6.28794. CFL: 25.
MG level: 1 -> Min. DT: 0.00204115. Max. DT: 9.19148. CFL: 21.1166.
MG level: 2 -> Min. DT: 0.00189142. Max. DT: 14.7692. CFL: 19.4394.

----------------------- Residual Evolution Summary ----------------------
log10[Maximum residual]: -4.05266.
Maximum residual point 18259, located at (0.146565, 0.155084, -0.025158).

 Iter    Time(s)     Res[Rho]     Res[RhoE]      CL(Total)      CD(Total)
    0  19.109375    -5.204928     -4.597762       0.166106       0.052986
    1  17.406250    -4.668226     -4.054766       0.235420       0.045799
    1  17.468750    -4.668226     -4.054766       0.235420       0.045799
    1  17.546875    -4.668226     -4.054766       0.235420       0.045799
    1  17.765625    -4.668226     -4.054766       0.235420       0.045799
    2  16.973958    -4.750446     -4.158519       0.255504       0.029367
    2  17.062500    -4.750446     -4.158519       0.255504       0.029367
    2  17.145833    -4.750446     -4.158519       0.255504       0.029367
    2  17.317708    -4.750446     -4.158519       0.255504       0.029367
    3  16.761719    -4.803657     -4.218884       0.272734       0.022452
    3  16.882812    -4.803657     -4.218884       0.272734       0.022452
    3  16.949219    -4.803657     -4.218884       0.272734       0.022452
    3  17.121094    -4.803657     -4.218884       0.272734       0.022452
Here is my config file:
jclegg@DESKTOP-CD3IBI9:/mnt/c/Users/Jon/Documents/SU2_Falcon/SU2-6.1.0$ ./configure --prefix=/mnt/c/Users/Jon/Documents/SU2_Falcon/SU2-6.1.0 CXXFLAGS="-O3" --enable-mpi --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/mpicxx accepts -g... yes
checking dependency style of /usr/bin/mpicxx... gcc3
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/mpicc accepts -g... yes
checking for /usr/bin/mpicc option to accept ISO C89... none needed
checking dependency style of /usr/bin/mpicc... gcc3
checking whether /usr/bin/mpicc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /usr/bin/mpicxx accepts -g... (cached) yes
checking dependency style of /usr/bin/mpicxx... (cached) gcc3
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for python2.7-config... /usr/bin/python2.7-config
checking python include flags... -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7
checking how to run the C preprocessor... /usr/bin/mpicc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of short int... 2
checking size of int... 4
checking size of unsigned int... 4
checking size of long int... 8
checking size of float... 4
checking size of double... 8
checking size of void *... 8
checking X11/Intrinsic.h usability... no
checking X11/Intrinsic.h presence... no
checking for X11/Intrinsic.h... no
<<< Configuring library with Metis support >>>
<<< Configuring library with Parmetis support >>>
<<< Configuring library with CGNS support >>>
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating externals/tecio/Makefile
config.status: creating externals/metis/Makefile
config.status: creating externals/parmetis/Makefile
config.status: creating externals/cgns/Makefile
config.status: creating Makefile
config.status: creating externals/Makefile
config.status: creating Common/lib/Makefile
config.status: creating SU2_CFD/obj/Makefile
config.status: creating SU2_DOT/obj/Makefile
config.status: creating SU2_MSH/obj/Makefile
config.status: creating SU2_DEF/obj/Makefile
config.status: creating SU2_SOL/obj/Makefile
config.status: creating SU2_GEO/obj/Makefile
config.status: creating SU2_PY/Makefile
config.status: creating SU2_PY/pySU2/Makefile
config.status: executing depfiles commands

|    ___ _   _ ___                                                      |
|   / __| | | |_  )   Release 6.1.0 'Falcon'                            |
|   \__ \ |_| |/ /                                                      |
|   |___/\___//___|   Suite                                             |
|                                                                       |
| The current SU2 release has been coordinated by the                   |
| SU2 International Developers Society <>          |
| with selected contributions from the open-source community.           |
| The main research teams contributing to the current release are:      |
| - Prof. Juan J. Alonso's group at Stanford University.                |
| - Prof. Piero Colonna's group at Delft University of Technology.      |
| - Prof. Nicolas R. Gauger's group at Kaiserslautern U. of Technology. |
| - Prof. Alberto Guardone's group at Polytechnic University of Milan.  |
| - Prof. Rafael Palacios' group at Imperial College London.            |
| - Prof. Vincent Terrapon's group at the University of Liege.          |
| - Prof. Edwin van der Weide's group at the University of Twente.      |
| - Lab. of New Concepts in Aeronautics at Tech. Inst. of Aeronautics.  |
| Copyright 2012-2018, Francisco D. Palacios, Thomas D. Economon,       |
|                      Tim Albring, and the SU2 contributors.           |
|                                                                       |
| SU2 is free software; you can redistribute it and/or                  |
| modify it under the terms of the GNU Lesser General Public            |
| License as published by the Free Software Foundation; either          |
| version 2.1 of the License, or (at your option) any later version.    |
|                                                                       |
| SU2 is distributed in the hope that it will be useful,                |
| but WITHOUT ANY WARRANTY; without even the implied warranty of        |
| Lesser General Public License for more details.                       |
|                                                                       |
| You should have received a copy of the GNU Lesser General Public      |
| License along with SU2. If not, see <>.   |

Build Configuration Summary:

    Source code location: /mnt/c/Users/Jon/Documents/SU2_Falcon/SU2-6.1.0
    Install location:     /mnt/c/Users/Jon/Documents/SU2_Falcon/SU2-6.1.0
    Version:              6.1.0
    C++ Compiler:         /usr/bin/mpicxx
    C Compiler:           /usr/bin/mpicc
    Preprocessor flags:   -DHAVE_MPI
    Compiler flags:       -O3
    Linker flags:
    MPI support:          yes
    Metis support:        yes
    Parmetis support:     yes
    TecIO support:        no
    CGNS support:         yes
    HDF5 support:         no
    SZIP support:         no
    ZLIB support:         no
    Mutation++ support:   no
    Jsoncpp support:      no
    LAPACK support:       no
    Datatype support:
        double              yes
        complex             no
        codi_reverse        no
        codi_forward        no

    External includes:    -DHAVE_CGNS -I$(top_srcdir)/externals/cgns -I$(top_srcdir)/externals/cgns/adf -DHAVE_PARMETIS -I$(top_srcdir)/externals/parmetis/include -DHAVE_METIS -I$(top_srcdir)/externals/metis/include
    External libs:        $(top_builddir)/externals/cgns/libcgns.a $(top_builddir)/externals/parmetis/libparmetis.a $(top_builddir)/externals/metis/libmetis.a

    Build SU2_CFD:        yes
    Build SU2_DOT:        yes
    Build SU2_MSH:        yes
    Build SU2_DEF:        yes
    Build SU2_SOL:        yes
    Build SU2_GEO:        yes
    Build Py Wrapper:     no

Please be sure to add the $SU2_HOME and $SU2_RUN environment variables,
and update your $PATH (and $PYTHONPATH if applicable) with $SU2_RUN.

Based on the input to this configuration, add these lines to your .bashrc file:

export SU2_RUN="/mnt/c/Users/Jon/Documents/SU2_Falcon/SU2-6.1.0/bin"
export SU2_HOME="/mnt/c/Users/Jon/Documents/SU2_Falcon/SU2-6.1.0"
export PATH=$PATH:$SU2_RUN
Thanks in advance.

Last edited by jclegg; December 6, 2018 at 15:41.
jclegg is offline   Reply With Quote

Old   December 10, 2018, 05:16
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 283
Rep Power: 6
pcg is on a distinguished road
If you installed a serial version there is a chance that you are now pointing to that version when calling SU2_CFD.

Try running mpirun with the absolute path to the executable that resulted from your parallel compilation.
pcg is offline   Reply With Quote

Old   October 12, 2020, 12:30
New Member
Join Date: May 2020
Posts: 3
Rep Power: 2
ugurtan666 is on a distinguished road
I have the same problem for a couple of days and it is really frustrating to overcome with it. Any help would be beneficial.
ugurtan666 is offline   Reply With Quote

Old   October 12, 2020, 13:06
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 283
Rep Power: 6
pcg is on a distinguished road
Follow these instructions:
(if you are on Windows I will not be able to help)

And post the entire output of the process, I will have a look but what often happens is:

You built a serial version because mpi was not detected.
You build a parallel version with one mpi distribution, and now tried to run it with a different mpi...

The same applies if you are using the pre-compiled binaries, you must run them with the same version of MPI listed here:
pcg is offline   Reply With Quote

Old   October 20, 2020, 04:28
New Member
Hyun Ko
Join Date: Jun 2009
Posts: 23
Rep Power: 13
hyunko is on a distinguished road
Need to check you mpi.
If your system has mpich and openmpi, please check which mpirun is used to run SU2.
If you compile SU2 by mpich and run it by openmpi, then multiple out can be shown.
hyunko is offline   Reply With Quote


build, parallel, su2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error make SU2 4.0.1 Heathckliff SU2 Installation 2 November 9, 2015 05:48
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 18:23
Scaling for parallel run for SU2 nileshjrane SU2 1 January 1, 2015 20:06
SU2 Parallel - cannot access or exectute dbaldzhiev SU2 3 November 24, 2014 17:02

All times are GMT -4. The time now is 15:09.