build in Debug mode

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Samuel Flores
Posts: 189
Joined: Mon Apr 30, 2007 1:06 pm

build in Debug mode

Post by Samuel Flores » Sun Feb 14, 2016 12:49 pm

Hi Guys,

I am trying to compile OpenMM in Debug mode. However in my target lib directory I only see:

../openmm/lib/libOpenMM.so

I was expecting to see a _d suffix like this::

../openmm/lib/libOpenMM_d.so


I don't see that CMakeLists calls for this suffix to be added. Should I treat ../openmm/lib/libOpenMM.so as a debug binary? It crashes my code if I do that actually.

Thanks

Sam

User avatar
Jason Swails
Posts: 47
Joined: Mon Jan 07, 2013 5:11 pm

Re: build in Debug mode

Post by Jason Swails » Sun Feb 14, 2016 1:30 pm

Yes, _d suffixes were removed a long time ago. Here is the issue where debug library naming was brought up as a question: https://github.com/pandegroup/openmm/issues/398 and then the PR that changed this behavior: https://github.com/pandegroup/openmm/pull/408

When you compile in Debug mode, what that does is build the standard libraries with debug symbols (and, I believe, reduced optimization).

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: build in Debug mode

Post by Peter Eastman » Sun Feb 14, 2016 3:17 pm

Where are you getting a crash? On Linux (which I gather you're using), debug and release code should be binary compatible with each other.

Peter

POST REPLY