CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

How to configure the CXXFLAGS AND LDFLAGS in SU2?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2017, 02:30
Default How to configure the CXXFLAGS AND LDFLAGS in SU2?
  #1
Member
 
Li Ji
Join Date: Sep 2014
Posts: 33
Rep Power: 11
leejearl is on a distinguished road
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.
leejearl is offline   Reply With Quote

Old   March 8, 2017, 05:06
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
You can change the compiler flags using

export CXXFLAGS="-O3"

before you run the configure script.
talbring is offline   Reply With Quote

Old   March 12, 2017, 00:57
Default
  #3
Member
 
Li Ji
Join Date: Sep 2014
Posts: 33
Rep Power: 11
leejearl is on a distinguished road
Quote:
Originally Posted by talbring View Post
You can change the compiler flags using

export CXXFLAGS="-O3"

before you run the configure script.
I build SU2 following your advice, but it hardly improve the efficiency of SU2.
leejearl is offline   Reply With Quote

Old   October 4, 2018, 13:03
Default
  #4
Member
 
Hector
Join Date: Jul 2010
Location: Barcelona
Posts: 30
Rep Power: 15
hectorgabriel85 is on a distinguished road
Quote:
Originally Posted by leejearl View Post
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.
What about
export CXXFLAGS="-O3 -march=native"
Does that increase its performance? Are you running in a processor with AVX or AVX2?
hectorgabriel85 is offline   Reply With Quote

Old   October 5, 2018, 12:39
Default
  #5
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13
pcg is on a distinguished road
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
pcg is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 07:50.