Teaching and debugging OpenMP in gfortran (or otherwise!)

Thomas Koenig tkoenig@netcologne.de
Sat Sep 15 16:22:00 GMT 2018


Am 15.09.2018 um 17:52 schrieb N.M. Maclaren:
> I am specifically asking about tools for
> automatic checking for race conditions - most of my course is about
> writing OpenMP that actually works, and it goes into great length about
> how hard it is to debug.

I have not debugged OpenMP myself, but for pthread - based code (the
async I/O stuff) valgrind has been invaluable. It helped Nicolas and
me to debug a one in 20000 occurrence of a deadlock...

Specifically, try to use

valgrind --tool=helgrind

and

valgrind --tool=drd

and watch the bugs come crawling out :-)

Regards

	Thomas



More information about the Fortran mailing list