How to debug openMP

Hi.

I am currently testing PGI Visual Fortran and have a question on debugging openMP code. It seems when i enter an OpenMP region the debugger only follow one thread, ie. when i step through the artificial example below the loop ends when i=4. How do I debug the threads running the remaining i’s?

Regards,

Casper Kirkegaard


!$OMP PARALLEL PRIVATE(I,X) NUM_THREADS(8)
!$OMP DO
DO I=1,32
X=X+I
ENDDO
!$OMP END DO
!$OMP END PARALLEL

Hi Casper,

Support for OpenMP and MPI debugging from within the PVF Visual Studio IDE will be available in the 8.1 release.

If you have access to the PGI Windows Workstation, Sever, or CDK product, you can build your application within PVF, and then from a DOS or Cygwin command line, run it in our stand-alone debugger, PGDBG. PGDBG does support OpenMP and MPI debugging.

  • Mat