Compiling HPF for Debugging

To compile your HPF program so it can be used with TotalView, you should use the -g and -Mtotalview options to pghpf when both compiling and linking. (The -Mtv option is the same as the -Mtotalview option.)

The -g option can produce confusing results when used by itself. For example, while you may see the HPF source code, none of the HPF debugging features work. If TotalView flags your HPF code in the stack backtrace as being f77, the program was probably not compiled with the -Mtv option.

If you want to debug the Fortran code generated by HPF, you must also use the -Mkeepftn option. Otherwise, the compiler deletes these intermediate Fortran files after it compiles the source code.

You can debug at the generated Fortran level by starting TotalView with the
-no_hpf option or setting the X resource totalview*hpf to false. TotalView will then ignore the .stb and .stx files and show you the generated F77.

There is no need to relink the HPF program to debug at the generated Fortran level.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0