fnktb
fnktb

Reputation: 11

OR-Tools; deactivating DCHECKS and defining NDEBUG

I'm a bit unexperienced using C++ or cmake and need some help using OR-Tools. The program runs and solves the problem. But when running the solver, there is a console output created that shows:

W0913 20:23:00.688635 23528 lp_solver.cc:151] 
******************************************************************  
* WARNING: Glop will be very slow because it will use DCHECKs    *  
* to verify the results and the precision of the solver.         *  
* You can gain at least an order of magnitude speedup by         *  
* compiling with optimizations enabled and by defining NDEBUG.   *  
******************************************************************

I included

set(GCC_COVERAGE_COMPILE_FLAGS "-Q -Ofast")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")

in my cmake file, but this seems to make no difference.

I would really like this order of magnitude speedup but I have no idea how to resolve this.

Upvotes: 1

Views: 66

Answers (0)

Related Questions