Fortran Programming Guide

Debugging Parallelized Programs

Compiling with the -g option cancels any of the parallelization options -autopar, -explicitpar, and -parallel, as well as -reduction and -depend. Some alternative ways to debug parallelized code are suggested in the following section.

Debugging Without dbx

Debugging parallelized programs requires some cleverness. The following schemes suggest ways to approach the problem:

Using dbx

To use dbx on a parallel loop, temporarily rewrite the program as follows: