Gecode / gecode

Generic Constraint Development Environment
https://www.gecode.org
Other
275 stars 76 forks source link

Performance difference if compiled with CMake vs Autotools #154

Closed 95A31 closed 2 years ago

95A31 commented 2 years ago

Hello, I am noticing a big solving time difference if I compile fzn-gecode (release/6.3.0) with cmake

mkdir build
cd build
cmake ..
make -j 8

and autotools

./configure
make

I am using the following command line

./fzn-gecode -s -n 260 ./400x200.fzn

with this model.

Dekker1 commented 2 years ago

CMake will produce a debug build by default. If you set the CMake build type to release, it will likely produce much more competitive binaries: https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html

zayenz commented 2 years ago

As @Dekker1 mentioned, the default of compilation with debug/release mode is different.