When placing a tvdsvr command in a
Server Launch or
Bulk Launch string (see the
File > Preferences command within the online Help for more information), you will need to use special replacement characters. When your program needs to launch a remote process, TotalView replaces these command characters with what they represent. Here are the replacement characters:
Expands to the ALPS Application ID (apid), which is a unique identifier for an application started using ALPS
aprun on Cray XT, XE, and XK. The token is used to construct server path references copied onto the compute nodes' ramdisk under the
/var/spool/alps/apid directory by the ALPS Tool Helper library.
Is replaced by the name of the server launch command being used. On most platforms, this is ssh -x. On Sun SPARC, this command is
rsh. If the
TVDSVRLAUNCHCMD environment variable exists, TotalView will use its value instead of its platform-specific value.
Contains the “tracer configuration flags” that need to be sent to tvdsvr processes. These are system-specific startup options that the
tvdsvr process needs.
Expands to the pid of the MPI starter process. For example, it can contain
mpirun,
aprun, etc. It can also be the process to which you manually attach. If no
pid is available,
%I expands to 0.
Expands to the job ID. For MPICH or poe jobs, is the contents of the totalview_jobid variable contained either in the starter or first process. If that variable does not exist, it is set to zero (“0”). If it is not appropriate for the kind of job being launched, its value is -1.
Expands to the tvdsvr platform suffix string in situations where a different server must be used. On Blue Gene/L and Blue Gene/P, the
%K expansion includes
_bgl, on Blue Gene/Q it includes
_bgq, and on Cray XT3 Catamount (RedStorm) it includes
_rs.
When MRNet is being used as the debugger infra-structure, _mrnet is appended to the normal
%K expansion. On Cray XT with MRNet enabled the
%K token is expanded to
_mrnet, while on Blue Gene/L or Blue Gene/P with MRNet enabled the
%K token is expanded to
_bgl_mrnet. This convention allows MRNet-specific debugger servers to be launched only when MRNet is being used as the debugger infrastructure.
Is replaced by the host name of the remote machine specified in the File > New Program command. When performing a bulk launch, this is replaced by a comma-separated list of the names of the hosts upon which TotalView will launch
tvdsvr processes.
The File > Preferences Bulk Server Page allows you to define templates for the contents of temporary files. These files may use these replacement characters. The
%N,
%t1, and
%t2 replacement characters can only be used within header and trailer lines of temporary files. All other characters can be used in header or trailer lines or within a host line defining the command that initiates a single-process server launch. In header or trailer lines, they behave as defined for a bulk launch within the host line. Otherwise, they behave as defined for a single-server launch.
Expands to the job ID. For MPICH or poe jobs, is the contents of the totalview_jobid variable contained either in the starter or first process. If that variable does not exist, it is set to zero (“0”). If it is not appropriate for the kind of job being launched, its value is -1.