PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgprof.out contains nan for times when -mcmodel=medium used

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



Joined: 05 Oct 2005
Posts: 2

PostPosted: Mon Mar 27, 2006 7:12 am    Post subject: pgprof.out contains nan for times when -mcmodel=medium used Reply with quote

When running a fortran program compiled with PGF95 6.1-3 as:

pgf95 -O3 -fastsse -Mprof=func -tp amd64 -Mlarge_arrays -mcmodel=medium -Bstatic -o foobar foobar.f90

the generated pgprof.out file looks like:

PROF NODALL 0 a.out 1143462776 0
h tcholx1 9949 0 1
t 1 2
p 0
f foobar.f90
r foobar 1 1 1 nan nan 0 0
r wrtpisc 1 19 50 nan nan 0 0
z


Removing -mcmodel=medium gives a more reasonable output file:

PROF NODALL 0 a.out 1143462711 0
h tcholx1 9919 0 1
t 1 2
p 0
f foobar.f90
r foobar 1 1 1 0.0299295 0.0111448 0 0
r wrtpisc 1 19 50 0.0187847 0.0187847 0 0
z

The actual program output is identical.

About 5% of the runs of the -mcmodel=medium version will replace the "nan" with "0", or with a multiple of 0.0658832. I've tried running a profiled binary on a 20 minute test with similar results.

The user's guide for 6.1 has some contradictory statements regarding the combination of static compilation and -mcmodel=medium. Do I need to link dynamically for profiling?

Thanks,
Nate
Back to top
View user's profile
mleair



Joined: 19 Jul 2004
Posts: 67
Location: Portland Group

PostPosted: Fri Mar 31, 2006 12:06 am    Post subject: Re: pgprof.out contains nan for times when -mcmodel=medium u Reply with quote

Hi Nate,

Sorry about the delay in getting back to you. Profiling programs compiled with -mcmodel=medium is not formally supported yet. We hope to address this limitation in a future release.

-Mark
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