\hypertarget{orte-restart_8c}{\section{orte/tools/orte-\/restart/orte-\/restart.c File Reference}
\label{orte-restart_8c}\index{orte/tools/orte-\/restart/orte-\/restart.\+c@{orte/tools/orte-\/restart/orte-\/restart.\+c}}
}


O\+R\+T\+E Restart Tool for restarting a previously checkpointed multiprocess job.  


{\ttfamily \#include \char`\"{}orte\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/constants.\+h\char`\"{}}\\*
{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include $<$errno.\+h$>$}\\*
{\ttfamily \#include \char`\"{}opal/runtime/opal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/runtime/opal\+\_\+cr.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/cmd\+\_\+line.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/output.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/argv.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/opal\+\_\+environ.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/basename.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/error.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/path.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/base/mca\+\_\+base\+\_\+param.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/crs/crs.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/crs/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/runtime/runtime.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/runtime/orte\+\_\+cr.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/mca/snapc/snapc.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/mca/snapc/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/mca/sstore/sstore.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/mca/sstore/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/mca/filem/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/show\+\_\+help.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}orte/util/proc\+\_\+info.\+h\char`\"{}}\\*
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structorte__restart__globals__t}{orte\+\_\+restart\+\_\+globals\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{orte-restart_8c_a05afccfcb7b22487df99f2a87a4f41ce}{static int {\bfseries initialize} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})}\label{orte-restart_8c_a05afccfcb7b22487df99f2a87a4f41ce}

\item 
\hypertarget{orte-restart_8c_a974a59e931b6b38ac060e05cea17e948}{static int {\bfseries finalize} (void)}\label{orte-restart_8c_a974a59e931b6b38ac060e05cea17e948}

\item 
static int \hyperlink{orte-restart_8c_a1c6cda197a32141227af69a440929ac6}{parse\+\_\+args} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})
\item 
\hypertarget{orte-restart_8c_a7ec15c36d0cc3b4d6ea51992479c0264}{static int {\bfseries create\+\_\+appfile} (\hyperlink{structorte__sstore__base__global__snapshot__info__1__0__0__t}{orte\+\_\+sstore\+\_\+base\+\_\+global\+\_\+snapshot\+\_\+info\+\_\+t} $\ast$snapshot)}\label{orte-restart_8c_a7ec15c36d0cc3b4d6ea51992479c0264}

\item 
\hypertarget{orte-restart_8c_aa48b209c756bd3a32f0ebf114b09121a}{static int {\bfseries spawn\+\_\+children} (\hyperlink{structorte__sstore__base__global__snapshot__info__1__0__0__t}{orte\+\_\+sstore\+\_\+base\+\_\+global\+\_\+snapshot\+\_\+info\+\_\+t} $\ast$snapshot, pid\+\_\+t $\ast$child\+\_\+pid)}\label{orte-restart_8c_aa48b209c756bd3a32f0ebf114b09121a}

\item 
\hypertarget{orte-restart_8c_ad1f07fe5249815188d0599382f27f062}{static int {\bfseries snapshot\+\_\+info} (\hyperlink{structorte__sstore__base__global__snapshot__info__1__0__0__t}{orte\+\_\+sstore\+\_\+base\+\_\+global\+\_\+snapshot\+\_\+info\+\_\+t} $\ast$snapshot)}\label{orte-restart_8c_ad1f07fe5249815188d0599382f27f062}

\item 
\hypertarget{orte-restart_8c_a1b0f6b911390e7280c8a05e87d4bc6dd}{static int {\bfseries snapshot\+\_\+sort\+\_\+compare\+\_\+fn} (\hyperlink{structopal__list__item__t}{opal\+\_\+list\+\_\+item\+\_\+t} $\ast$$\ast$a, \hyperlink{structopal__list__item__t}{opal\+\_\+list\+\_\+item\+\_\+t} $\ast$$\ast$b)}\label{orte-restart_8c_a1b0f6b911390e7280c8a05e87d4bc6dd}

\item 
\hypertarget{orte-restart_8c_a0ddf1224851353fc92bfbff6f499fa97}{int {\bfseries main} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})}\label{orte-restart_8c_a0ddf1224851353fc92bfbff6f499fa97}

\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{orte-restart_8c_a8a0f215df6340c76ecb3c5d3f54926ef}{\hyperlink{structorte__restart__globals__t}{orte\+\_\+restart\+\_\+globals\+\_\+t} {\bfseries orte\+\_\+restart\+\_\+globals}}\label{orte-restart_8c_a8a0f215df6340c76ecb3c5d3f54926ef}

\item 
\hypertarget{orte-restart_8c_a69f8880faeb9e19bb4259ef8948d3f85}{\hyperlink{structopal__cmd__line__init__t}{opal\+\_\+cmd\+\_\+line\+\_\+init\+\_\+t} {\bfseries cmd\+\_\+line\+\_\+opts} \mbox{[}$\,$\mbox{]}}\label{orte-restart_8c_a69f8880faeb9e19bb4259ef8948d3f85}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
O\+R\+T\+E Restart Tool for restarting a previously checkpointed multiprocess job. 



\subsection{Function Documentation}
\hypertarget{orte-restart_8c_a1c6cda197a32141227af69a440929ac6}{\index{orte-\/restart.\+c@{orte-\/restart.\+c}!parse\+\_\+args@{parse\+\_\+args}}
\index{parse\+\_\+args@{parse\+\_\+args}!orte-\/restart.\+c@{orte-\/restart.\+c}}
\subsubsection[{parse\+\_\+args}]{\setlength{\rightskip}{0pt plus 5cm}static int parse\+\_\+args (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$}]{argv\mbox{[}$\,$\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{orte-restart_8c_a1c6cda197a32141227af69a440929ac6}
Put all of the M\+C\+A arguments in the environment

Now start parsing our specific arguments

References mca\+\_\+base\+\_\+param\+\_\+env\+\_\+var(), opal\+\_\+argv\+\_\+count(), opal\+\_\+argv\+\_\+join(), opal\+\_\+cmd\+\_\+line\+\_\+create(), opal\+\_\+cmd\+\_\+line\+\_\+get\+\_\+tail(), opal\+\_\+cmd\+\_\+line\+\_\+get\+\_\+usage\+\_\+msg(), opal\+\_\+cmd\+\_\+line\+\_\+parse(), opal\+\_\+setenv(), and opal\+\_\+show\+\_\+help\+\_\+string().

