CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Softwares for debugging parallel CFD codes

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By aerosayan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2021, 20:23
Default Softwares for debugging parallel CFD codes
  #1
New Member
 
Join Date: Sep 2018
Location: Bangalore
Posts: 6
Rep Power: 8
shalabhks is on a distinguished road
Hi All,
I am looking for softwares (preferably free/open source) that can be used for debugging large CFD codes in parallel (MPI) and Multi-thread environment.

Valgrind is one but I haven't found it very useful in MPI environment. I have mostly ended up using compiler debugging features. Is there anything beyond these that is powerful and easy to use?
shalabhks is offline   Reply With Quote

Old   March 24, 2021, 13:03
Default
  #2
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
valgrind is generally used as a profiler, and not a debugger, unless you're aiming to solve memory leak issues. At least that's what I use it for. Of course you can use it as a debugger, but I personally don't enjoy using it as a debugger.

DEBUGGING:

For debugging, I would recommend GDB (GNU Debugger). Instead of using the CLI version of GDB, use something like qt-creator IDE. qt-creator can use the GDB debugger and allow you to debug your code very easily due to its rich GUI features.


EDIT : Here's how you can do it in CLI for MPI apps : https://stackoverflow.com/questions/...ebugger-in-mpi
However notice that to do it in GUI, you might have to configure qt-creator to call the mpi app if you're using mpirun, as it's normally configured to run single threaded or OpenMP apps.


PROFILING:

valgrind is not suitable for profiling numerical codes because valgrind is extremely slow.

I haven't worked with MPI, but for OpenMP and for serial codes, you can use linux-perf tool.

Some other profilers like tau, are also available, but I haven't personally used them.
shalabhks likes this.
aerosayan is offline   Reply With Quote

Old   March 24, 2021, 17:38
Default
  #3
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Also found a way to do it in valgrind : https://valgrind.org/docs/manual/mc-...manual.mpiwrap
Since I don't use valgrind for debugging, you'll have to see it for yourself.
aerosayan is offline   Reply With Quote

Old   March 25, 2021, 05:37
Default
  #4
New Member
 
Join Date: Sep 2018
Location: Bangalore
Posts: 6
Rep Power: 8
shalabhks is on a distinguished road
Thank you. Qt based GUI version looks pretty good. Thank you.
shalabhks is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison of CFD Codes Kerem Main CFD Forum 9 May 9, 2003 05:29
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 01:18
CFD Codes Jonas Larsson Main CFD Forum 5 September 14, 1998 08:08
CFD - Trends and Perspectives Jonas Larsson Main CFD Forum 16 August 7, 1998 17:27
salary range Frank Muldoon Main CFD Forum 7 August 3, 1998 20:04


All times are GMT -4. The time now is 01:29.