Download PGI User's Guide
Transcript
Chapter 9. Using Environment Variables there are still some dependencies on the PGI environment variable, and you can use it as a convenience when initializing your environment for use of the PGI compilers and tools. For example, assuming you use csh and want the 64-bit linux86-64 versions of the PGI compilers and tools to be the default, you would use this syntax: % % % % setenv PGI /usr/pgi setenv MANPATH "$MANPATH":$PGI/linux86/8.0/man setenv LM_LICENSE_FILE $PGI/license.dat set path = ($PGI/linux86-64/8.0/bin $path) PGI_CONTINUE You set the PGI_CONTINUE variable to specify the actions to take before continuing with execution. For example, if the PGI_CONTINUE environment variable is set and then a program that is compiled with –Mchkfpstk is executed, the stack is automatically cleaned up and execution then continues. If PGI_CONTINUE is set to verbose, the stack is automatically cleaned up, a warning message is printed, and then execution continues. Note There is a performance penalty associated with the stack cleanup. PGI_OBJSUFFIX You can set the PGI_OBJSUFFIX environment variable to generate object files that have a specific suffix. For example, if you set PGI_OBJSUFFIX to .o, the object files have a suffix of .o rather than .obj. PGI_STACK_USAGE (Windows only) The PGI_STACK_USAGE variable allows you to explicitly set stack properties for your program. When the user compiles a program with the –Mchkstk option and sets the PGI_STACK_USAGE environment variable to any value, the program displays the stack space allocated and used after the program exits. You might see something similar to the following message: thread 0 stack: max 8180KB, used 48KB This message indicates that the program used 48KB of a 8180KB allocated stack. For more information on the –Mchkstk option, refer to –Mchkstk. PGI_TERM The PGI_TERM environment variable controls the stack traceback and just-in-time debugging functionality. The runtime libraries use the value of PGI_TERM to determine what action to take when a program abnormally terminates. The value of PGI_TERM is a comma-separated list of options. The commands for setting the environment variable follow. • In csh: % setenv PGI_TERM option[,option...] 111
Related documents
PGI User's Guide - The University of Sheffield High Performance and
PGI User's Guide
PGI User's Guide Release 9.0 - Faculty of Science HPC Site
PGI User's Guide
PGI 6.1 User`s Guide - University of Alberta
PGI 5 User's Guide - The Portland Group
PGI User's Guide
PGI Compiler User`s Guide
PGI Compiler Reference Manual
PVF Reference Guide
PGI 5 User's Guide
Intel(R) C++ Compiler for Linux* Systems User's Guide