|
[Sponsors] |
How to configure the CXXFLAGS AND LDFLAGS in SU2? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2017, 02:30 |
How to configure the CXXFLAGS AND LDFLAGS in SU2?
|
#1 |
Member
Li Ji
Join Date: Sep 2014
Posts: 33
Rep Power: 12 |
Hi, all:
I found that the default option of CXXFLAGS is "-g -O2", and the default option of LDFLAGS is none. In my viewpoint, the option "-g" might reduce the efficiency of the programs. Is there any example of options which can improve the computational efficiency of SU2? Thanks. |
|
March 8, 2017, 05:06 |
|
#2 |
Super Moderator
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10 |
You can change the compiler flags using
export CXXFLAGS="-O3" before you run the configure script. |
|
March 12, 2017, 00:57 |
|
#3 |
Member
Li Ji
Join Date: Sep 2014
Posts: 33
Rep Power: 12 |
||
October 4, 2018, 13:03 |
|
#4 | |
Member
Hector
Join Date: Jul 2010
Location: Barcelona
Posts: 30
Rep Power: 16 |
Quote:
export CXXFLAGS="-O3 -march=native" Does that increase its performance? Are you running in a processor with AVX or AVX2? |
||
October 5, 2018, 12:39 |
|
#5 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13 |
SU2 gets its versatility from polymorphism, that unfortunately rules out many optimizations, and so the difference between O2 and O3 is not great. (-g only serves to keep debugging symbols in the binaries, I do not think it changes the optimization level).
That being said, the current development version is able to use MKL to accelerate the solution of linear systems, you can find more information here: https://github.com/su2code/SU2/pull/543 |
|
|
|