PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

debugging and compiling flags?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
ignacio82



Joined: 25 Jul 2013
Posts: 6

PostPosted: Fri Aug 09, 2013 10:13 am    Post subject: debugging and compiling flags? Reply with quote

When I use the intel compiler I use flags like -check all or -CB

Are there any similar flags in pgi?

What about something similar to -fast?

Thanks!
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Aug 12, 2013 9:49 am    Post subject: Reply with quote

Hi ignacio82,

Here's the list of our debugging switchs. I also recommend using Valgrind (www.valgrind.org) when looking for UMRs or other memory issues.

Hope this helps,
Mat

Quote:

% pgfortran -help
....
Debugging switches:
-C Generate code to check array bounds
-g Generate information for debugger
-gopt Generate information for debugger without disabling optimizations
-M[no]bounds Generate code to check array bounds
-Mchkfpstk Check consistency of floating point stack at subprogram calls (32-bit only)
-Mchkptr Check for NULL pointers
-Mchkstk Check for sufficient stack space upon subprogram entry
-Mcoff Generate COFF format object
-Mdwarf1 Generate DWARF1 debug information with -g
-Mdwarf2 Generate DWARF2 debug information with -g
-Mdwarf3 Generate DWARF3 debug information with -g
-Melf Generate ELF format object
-Mnodwarf Do not add DWARF debug information
-M[no]pgicoff Generate additional symbolic information
-[no]traceback Add debug information for runtime traceback
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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