pgprof

I’m trying to run the pgi profiler and am having difficulty. I’ve never used a profiler before, so I’m not really sure of what to do.

I compiled my code with the -Mprof=func option in both the compiler flags and the linker flags. The code is a complex scientific code with both Fortran 77 and Fortran 90 modules. When I compile and run the code I get a pgprof.out file, which I can look at with a text editor. However, when I try to use the pgi profiler with the pgiprof command, I get the following error:

pgprof: dynamic-link.h:57: elf_get_dynamic_info: Assertion `! “bad dynamic tag”’ failed.
Abort

I’d appreciate any help with this.

thanks.

Hi,

What OS do you run on? Is this Intel or AMD, dual-core, quad-core?
What compiler 32-bit or 64-bit and which version?
I assume this is just a serial code?
What are other compiler options do you use?
What command do you use to invoke pgprof? text version or gui version? Can you invoke it without pgprof.out to see if it start up pgprof?

Thanks,
Hongyon

I am running on a Intel Linux cluster 32-bit, compiler version 5 (I think)

Linux ompspeate3.gsfc.nasa.gov 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686 i686 i386 GNU/Linux

I tried invoking the profiler several different ways, using text version, eg
pgprof -text pgprof.out
pgprof - s pgprof.out
pgprof -s -exe inversion.exe (I then renamed the executable to a.out)

When I tried pgprof by itself, I still got the error:
pgprof: dynamic-link.h:57: elf_get_dynamic_info: Assertion `! “bad dynamic tag”’ failed.
Abort

thanks.

Hi,

Can you please try again which version of compiler do you use? Version 5 is very very old.


Hongyon

Switching to compiler version 6.0 did the trick–I am now able to use the profile tool.

thanks.