LPATH environment variable.................................................................................................
65
MP_NUMBER_OF_THREADS environment variable.................................................................
Floating installation.................................................................................................................
Setting up floating installation..............................................................................................
66
3 Controlling data storage............................................................................
67
Disabling implicit typing..........................................................................................................
Automatic and static variables..................................................................................................
Increasing the precision of constants.........................................................................................
69
Increasing default data sizes....................................................................................................
70
Increasing default data sizes...............................................................................................
Sharing data among programs.................................................................................................
72
Modules vs. common blocks.....................................................................................................
74
4 Debugging..............................................................................................
76
Using the HP WDB debugger..................................................................................................
Stripping debugging information..............................................................................................
Handling runtime exceptions....................................................................................................
77
Bus error exception............................................................................................................
78
Floating-point exceptions.....................................................................................................
Illegal instruction exception.................................................................................................
79
Segmentation violation exception.........................................................................................
Bad argument exception.....................................................................................................
80
Using debugging lines............................................................................................................
5 Using the ON statement............................................................................
81
Exceptions handled by the ON statement..................................................................................
Actions specified by ON.........................................................................................................
82
Terminating program execution............................................................................................
83
Ignoring errors...................................................................................................................
Calling a trap procedure....................................................................................................
84
Trapping floating-point exceptions...................................................................................
Trapping integer overflow exceptions...............................................................................
Trapping +Ctrl-C trap interrupts................................................................................................
85
Allowing core dumps..............................................................................................................
87
Using profilers........................................................................................................................
HP Caliper........................................................................................................................
Invoking HP Caliper with the compiler to optimize your program.........................................
88
Comparing Program Performance....................................................................................
Using Options to Control Data Collection.........................................................................
89
Specifying PBO file names and locations..........................................................................
gprof................................................................................................................................
prof.................................................................................................................................
90
Using options to control optimization.........................................................................................
Using +O to set optimization levels......................................................................................
Using the optimization options.............................................................................................
91
Conservative vs. aggressive optimization...................................................................................
99
Parallelizing HP Fortran programs...........................................................................................
100
Compiling for parallel execution........................................................................................
Performance and parallelization.........................................................................................
101
Profiling parallelized programs..........................................................................................
Conditions inhibiting loop parallelization............................................................................
Calling routines with side effects parallellization .............................................................
Indeterminate iteration counts.......................................................................................
102
Data dependences......................................................................................................
4Contents