|
[Sponsors] |
March 23, 2021, 20:23 |
Softwares for debugging parallel CFD codes
|
#1 |
New Member
Join Date: Sep 2018
Location: Bangalore
Posts: 6
Rep Power: 8 |
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? |
|
March 24, 2021, 13:03 |
|
#2 |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
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. |
|
March 24, 2021, 17:38 |
|
#3 |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
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. |
|
March 25, 2021, 05:37 |
|
#4 |
New Member
Join Date: Sep 2018
Location: Bangalore
Posts: 6
Rep Power: 8 |
Thank you. Qt based GUI version looks pretty good. Thank you.
|
|
|
|
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 |