#!/bin/bash usage() { echo -e "usage: $0 \n" exit 1 } ## main ## if [ $# -eq 6 ]; then sessionId=$1 jobId=$2 userId=$3 groupId=$4 checkpointDir=$5 checkpointName=$6 else usage fi ## main ## read MPIRUN_PID < ${checkpointDir}/mpirun.pid.$jobId echo "ompi-restart -mca snapc_base_global_snapshot_dir $checkpointDir ompi_global_snapshot_${MPIRUN_PID}.ckpt" 1>&2 su - nectest -c "ompi-restart -mca snapc_base_global_snapshot_dir $checkpointDir ompi_global_snapshot_${MPIRUN_PID}.ckpt"