How to profile a LAM MPI code ?

I try to profile a MPI code (LAM-MPI implementation).

But when I link with -Mprof=mpi, it doesn’t work, and I get :
“/usr/bin/ld: cannot find -lfmpich”

Any idea, please ?

Hi petrebang,

The error your seeing is because the driver automatically adds the MPICH libraries, included with the PGI CDK product, to the link line when “-Mprof=mpi” is used. Currently, only MPICH is supported by the PGI debugger and profiler. We do plan on supporting more flavors of MPI in the future, but for now you’ll need to use MPICH in order to profile and debug MPI code.

  • Mat