blond-org / BLonD-cpp

BLonD implementation in C++
GNU General Public License v3.0
2 stars 3 forks source link

Optimisation flags for gcc #18

Closed dpiparo closed 8 years ago

dpiparo commented 8 years ago

Hi,

I only have a mac presently at disposal. Given that the config has some glitches on osx, I am not able to check this myself but it seems to me, and perhaps I am wrong, that the optimisation flags for gcc are not set correctly and the implicit "-O0" is used.

Cheers, Danilo

OlegJakushkin commented 8 years ago

The -O0 option is set only for Debug configuration. Release is currently using default Cmake configuration for GCC Release. Probably better to specify set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast") between this lines 111-112

dpiparo commented 8 years ago

Hi Oleg,

right. For Clang Ofast is specified. I would recommend to do the same for gcc :)

Cheers, Danilo