SoftwareCompilersLibraries Applications Tools & Utilities Software by PlatformFranklinSeaborg Bassi Jacquard DaVinci PDSF HPSS Affiliated CollectionsACTS Collection |
Important Portland Group Compiler OptionsThe most important Portland Group compiler optimization and some debugging flags are described here. For the most part, the Portland Group Fortran, C, and C++ compilers all have the same optimization arguments. The description of these arguments below applies to all three compilers unless otherwise stated. For a full reference of Portland Group flags see PGI References. -fast and -fastsseIn PGI7 family, -fast and -fastsee are the same They both contain the common optimizations and also include SSE hardware and vectorization. The -fast and -fastsse arguments are equal to "-O2 -Munroll=c:1 -Mnoframe -Mlre -Mvect=sse -Mscalarsse -Mcache_align -Mflushz"
Note: In PGI6 family, -fast and -fastsse are different. Please use "pgf95 -help -fast" or "pgf95 -help -fastsse" to see the details. -OnThe compilers allow you to select a general level of optimization by specifying a numeric optimization level with the -O flag. The higher the number the greater the amount of optimization the compiler does, the longer the compile takes, and the more memory the compile uses. The current default optimization -O2.
-MipaThe -Mipa option enables interprocedural analysis (IPA) by the compiler. This enables the compiler to identify optimization opportunities across procedural boundaries. It does this by extending the area that is examined during optimization and inlining from a single procedure to multiple procedures (possibly in different source files) and the linkage between them. This option should be included in both the compile and link phases. Additionally the -Mipa flag can do the following
-Mipa options
-Minfo and -Mneginfo
Debugging Options
Explicit Function Inlining with -MinlineParticularly important for C and C++ codessyntax: -Minline=[=[lib:]<inlib> | [name:]<func> | except:<func>: | size:<n> | levels:<n>]
-Msafeptr for C and C++ Codessyntax: -M[no]safeptr[=all | arg | auto | dummy | local | static | global]
|
![]() |
Page last modified: Tue, 30 Oct 2007 21:08:57 GMT Page URL: http://www.nersc.gov/nusers/resources/franklin/software/pgi_options.php Web contact: webmaster@nersc.gov Computing questions: consult@nersc.gov Privacy and Security Notice |
![]() |