[gmx-users] Using flags to debug gromacs
Marcela Madrid
mmadrid at psc.edu
Wed Sep 28 16:14:58 CEST 2016
thanks, Mark.
Marcela
> On Sep 28, 2016, at 9:56 AM, Mark Abraham <mark.j.abraham at gmail.com> wrote:
>
> Hi,
>
> The debug build type works perfectly for this case in the way you've done
> it, and it works with DDT. You need to make sure you point DDT at the
> correct binary from the build.
>
> Mark
>
> On Tue, Sep 27, 2016 at 9:31 PM Marcela Madrid <mmadrid at psc.edu> wrote:
>
>> Hello,
>>
>> I would like to know how to pass debugging flags when I build gromacs
>> so that I can see the variables that are been passed when the run gets
>> stuck
>> by using a debugger such as DDT. Can one use DDT with gromacs?
>>
>> I tried in the build directory:
>>
>> cmake .. -DGMX_BUILD_OWN_FFTW=ON -DGMX_FFT_LIBRARY=fftw3 \
>> -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_MPI=on \
>> -DCMAKE_BUILD_TYPE=Debug \
>> -DCMAKE_INSTALL_PREFIX=/opt/packages/gromacs-5.1.3_g
>>
>> This does not seem to pass any variables to the compilers.
>> I also tried
>> export CFLAGS="-g -traceback"
>> export CXXFLAGS="-g -traceback"
>>
>> but also I do not see that flags are been passed. Can someone tell me how
>> to add the flags
>> for debugging?
>>
>> Thank you very much, Marcela
>> --
>> Gromacs Users mailing list
>>
>> * Please search the archive at
>> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
>> posting!
>>
>> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>>
>> * For (un)subscribe requests visit
>> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
>> send a mail to gmx-users-request at gromacs.org.
>>
> --
> Gromacs Users mailing list
>
> * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a mail to gmx-users-request at gromacs.org.
More information about the gromacs.org_gmx-users
mailing list