beautypg.com

Epilog file – HP XC System 3.x Software User Manual

Page 72

background image

the daemon when the specified PID process terminates. In this case, pid is the PID of the initial
slurmstepd

on node for this task.

By default, the -terminate-with option does not flush HPCPI data to disk before terminating
the daemon. You can specify the -doflush option with the -terminate-with option to flush
the data before terminating the daemon. In this example, the -terminate-with option is used
only as a contingency method to kill the daemon, and the -doflush is not specified based on
the assumption that the -terminate-with option takes effect only if something fails in the
job.

The script specifies the hpcpid option -epoch to use the current epoch instead of starting a
new epoch.

The script writes the hpcpid startup information to the log file
task-prolog.hostname.shell_pid

in the HPCPI database. You can use this information

to analyze possible problems.

epilog File

The contents of the epilog file slurm.task-epilog.hpcpi are as follows:

#!/bin/csh -f
if ( ! $?SLURM_LOCALID ) then
exit
endif
# Only quit from one task per node.
#
if ( $SLURM_LOCALID == 0 ) then
hpcpictl quit >>& $HPCPIDB/task-epilog.`hostname`.$$
endif
end

72

Using HPCPI on an HP XC Cluster