|
[Sponsors] |
June 25, 2018, 06:06 |
AD build problems
|
#1 |
Member
David
Join Date: Feb 2013
Posts: 38
Rep Power: 13 |
I tried to do the AD build together with parallel, Python wrapper build.
I used the following command: Code:
export CXXFLAGS="-O3 -Wall" && sudo ./preconfigure.py --enable-autodiff --enable-mpi --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx --enable-PY_WRAPPER --prefix=$SU2_INSTALLPATH Code:
sudo make install I kept getting the following warning message again and again, the make process never end. Please help me out, thank you very much, what could be wrong? Code:
In file included from ../../../Common/lib/../src/../include/./mpi_structure.hpp:42:0, from ../../../Common/lib/../src/../include/linear_solvers_structure.hpp:41, from ../../../Common/lib/../src/linear_solvers_structure.cpp:38: /usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:1569:20: note: declared here OMPI_DECLSPEC int MPI_Keyval_create(MPI_Copy_function *copy_fn, ^~~~~~~~~~~~~~~~~ In file included from ../../../externals/medi/include/medi/ampi/ampi.hpp:41:0, from ../../../externals/medi/include/medi/medi.hpp:33, from ../../../Common/lib/../src/../include/./mpi_structure.hpp:55, from ../../../Common/lib/../src/../include/linear_solvers_structure.hpp:41, from ../../../Common/lib/../src/linear_solvers_structure.cpp:38: ../../../externals/medi/include/medi/ampi/../../../generated/medi/ampiFunctions.hpp: In function ‘int medi::AMPI_Keyval_free(int*)’: ../../../externals/medi/include/medi/ampi/../../../generated/medi/ampiFunctions.hpp:9769:34: warning: ‘int MPI_Keyval_free(int*)’ is deprecated: MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0 [-Wdeprecated-declarations] return MPI_Keyval_free(keyval); ^ In file included from ../../../Common/lib/../src/../include/./mpi_structure.hpp:42:0, from ../../../Common/lib/../src/../include/linear_solvers_structure.hpp:41, from ../../../Common/lib/../src/linear_solvers_structure.cpp:38: /usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:1573:20: note: declared here OMPI_DECLSPEC int MPI_Keyval_free(int *keyval) If there is no AD build, I would just use the following command: Code:
sudo ./configure --prefix=$SU2_INSTALLPATH CXXFLAGS="-O3 -Wall" --enable-mpi --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx --enable-PY_WRAPPER sudo make sudo make install |
|
June 27, 2018, 17:17 |
|
#2 |
Super Moderator
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10 |
Can you add the compiler option -Wno-deprecated-declarations ? This way the warning will be removed and you can better see the progress of the compilation.
Tim
__________________
Developer Director @ SU2 Foundation Get involved:
|
|
June 29, 2018, 05:08 |
|
#3 | |
Member
David
Join Date: Feb 2013
Posts: 38
Rep Power: 13 |
Quote:
I tried the flag, while the same error message still show up repeatedly! Never ending? Have your ever or is there anybody ever build all the functions of SU2 before? I believe it is several commands input, just the combination and procedure is not known.Right now, my system seems OK when compiling any other functions other than AD Joint Solver. The official installation guide is not very clear. If anybody could write a simple instruction, that will be wonderful! Please help out, thank you very much! |
||
June 29, 2018, 06:33 |
|
#4 |
Super Moderator
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10 |
Then try it without -Wall. These are just warnings, the compilation should work fine.
__________________
Developer Director @ SU2 Foundation Get involved:
|
|
July 12, 2018, 00:02 |
|
#5 |
Member
David
Join Date: Feb 2013
Posts: 38
Rep Power: 13 |
Thanks, talbring!
Looks like it is like what you said the compiling runs over. However, when I try the first design feature in tutorial: Unconstrained shape design of a transonic inviscid airfoil at a cte. AoA it only runs for 6 steps, looks like something is still not appropriatly installed: the error message is as follows: Code:
NIT FC OBJFUN GNORM 1 1 2.946447E-08 6.646259E-06 2 3 2.927194E-08 5.513828E-06 3 4 2.037004E-08 4.516896E-06 4 6 1.769283E-08 5.893302E-06 Traceback (most recent call last): File "/opt/SU2/SU2-6.0.0/build/bin/shape_optimization.py", line 187, in <module> main() File "/opt/SU2/SU2-6.0.0/build/bin/shape_optimization.py", line 118, in main options.nzones ) File "/opt/SU2/SU2-6.0.0/build/bin/shape_optimization.py", line 163, in shape_optimization SU2.opt.SLSQP(project,x0,xb,its,accu) File "/opt/SU2/SU2-6.0.0/build/bin/SU2/opt/scipy_tools.py", line 143, in scipy_slsqp epsilon = eps ) File "/usr/lib/python2.7/dist-packages/scipy/optimize/slsqp.py", line 207, in fmin_slsqp constraints=cons, **opts) File "/usr/lib/python2.7/dist-packages/scipy/optimize/slsqp.py", line 370, in _minimize_slsqp raise ValueError("Objective function must return a scalar") ValueError: Objective function must return a scalar |
|
March 4, 2019, 07:26 |
|
#6 |
New Member
Amir Bagheri
Join Date: Feb 2019
Location: Southampton, UK
Posts: 11
Rep Power: 7 |
Hi David,
I'm having the exact same problem trying to compile the AD build with the python wrapper enabled (SU2 6.2.0) . Did you ever manage to solve it? Thanks, Amir |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Benchmark Problems to test a new scheme for Convection-diffusion equation | alibaig1991 | Main CFD Forum | 1 | June 16, 2018 04:30 |
Patankar 1980 (Diffusion Convection Problems) | hhandoko | System Analysis | 1 | January 25, 2018 07:56 |
Needed Benchmark Problems for FSI | Mechstud | Main CFD Forum | 4 | July 26, 2011 12:13 |
Problems after installing 14 and trying to build my solver | alan_fergus | OpenFOAM Running, Solving & CFD | 2 | June 14, 2007 04:24 |
CFX Build 5 question... | cfd guy | CFX | 6 | June 19, 2001 22:38 |