Cypress CSC-1200T Betriebsanweisung Seite 43

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 42
Chapter 5. Fortran programming 43
Option Explanation
-c Compile only, do not attempt to link
-r2 Request for standard listing file (.lst)
-r6 Request for full listing
-rm Request for listing with loopmarks
-i32 Treat INTEGER as 32-bit (4 bytes)
-s default32 Treat INTEGER, REAL and LOGICAL as 32-bit
-dp Treat DOUBLE PRECISION as REAL (default)
-On Set the optimization level n (0,1,2,3)
-O3 Aggressive optimization
-Osplit2 Automatic loop splitting (check all loops)
-Ounroll2 Automatic loop unrolling (2 copies)
-Oaggress Increases internal table limits for better optimization
-Obl Enables bottom loading of scalar operands in loops
-g Enable debugging of code with TotalView
Table 5.2: Some CF90 compiler options. For further details about the
options see the manual pages using the command man f90.
750 Mflop/s per processor, the parallel performance of the code will be
poor even if the code parallelizes perfectly.
The optimization of Fortran codes is discussed in detail in the Cray
publication Cray T3E Fortran Optimization Guide [Crac]. Therefore we
only present a short review of the subject here.
The first step in the performance optimization is the selection of a robust
and an efficient algorithm with regard to the parallel implementation.
When available, tested and efficient library routines should be used.
The code should be optimized first via compiler options and later, if
necessary, by manual intervention. Furthermore, one should begin the
optimization of a program from the parts that take most resources. This
requires profiling the program that is discussed in Chapter 9.
The -O option of the f90 command can be used to do several different
types of code optimization. The option -On, where n is 0, 1, 2 or 3, is
the basic way to select the optimization level.
Instead of giving the numerical optimization level, you can also request
a specific type of optimization. For example, the option
-O aggress,scalar3,bl,unroll2,split2
specifies aggressive optimization with extensive scalar optimization and
several techniques for loop optimization (bottom loading, unrolling and
loop splitting).
The specific optimization types can also be selected by compiler direc-
tives in the source code (see Section 5.7 on page 45).
Seitenansicht 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare