PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgprof

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
kathryn



Joined: 05 May 2008
Posts: 3

PostPosted: Wed May 28, 2008 12:52 pm    Post subject: pgprof Reply with quote

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.
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Wed May 28, 2008 1:03 pm    Post subject: Reply with quote

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
Back to top
View user's profile
kathryn



Joined: 05 May 2008
Posts: 3

PostPosted: Wed May 28, 2008 1:20 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Wed May 28, 2008 3:08 pm    Post subject: Reply with quote

Hi,

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


Hongyon
Back to top
View user's profile
kathryn



Joined: 05 May 2008
Posts: 3

PostPosted: Fri May 30, 2008 6:55 am    Post subject: Reply with quote

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

thanks.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group