PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

cant get a pgprof.out file

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



Joined: 12 Oct 2005
Posts: 2

PostPosted: Wed Oct 12, 2005 11:12 am    Post subject: cant get a pgprof.out file Reply with quote

I am running a non-parallel code with the pgf90 compiler. I would like to do profiling to check for areas of slow code. I compile with the -qp flag and I have also tried to compile it with the -Mprof=func flag. When I use the -qp option, it compiles no problem but when I run it, I get no pgprof.out file to look at. When I compile it with the -Mprof=func flag, I get errors in the compilation that say "undefined reference to __rouent"- it gives me this error for all the subroutines and modules that are compiled.

If you have any suggestions, it would be appreciated.

-Cara-Lyn
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Wed Oct 12, 2005 12:28 pm    Post subject: Reply with quote

Hi Cara-Lyn,

"-qp" or "-pg" uses Gprof style profiling and produce a 'gmon.out' output file. To view the results using pgprof, run 'pgprof -exe <my exe name> gmon.out'.

The second error is caused because you need to also link with "-Mprof=func" since this instructs the driver to link using the profiling libraries.

Hope this helps,
Mat
Back to top
View user's profile
CL7



Joined: 12 Oct 2005
Posts: 2

PostPosted: Wed Oct 12, 2005 1:27 pm    Post subject: Reply with quote

ok, great- works now- thank you
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