📄 chl.h
字号:
#ifndef chl_h_#define chl_h_/** * Create pipe used for transmission of the checkpoint file between native app * and the worker. * @param wid: the group id * @param rankid: the rank * @return 0 if no error. */int initCheckpointLib(int wid, int rankid);/* Removes created pipes * @param wid: the group id * @param rankid: the rank * @return 0 if no error. */int closeCheckpointLib(int wid, int rankid);/** * open the pipe for reading checkpoint image * @param wid : the group number of the application. * @param rankid : the rank of the MPI process. * @return fd of the pipe, -1 on failure. */int openCheckpointPipeRD(int wid, int rankid);/** * Fork and executes the exeargv array according the restart/invoke flag, * for this rang and this job id * The localMPI argument is already pushed on the stack. * @param argv: the array of arguments ([0] is the path) * @param argc: the number of used arguments * @param args: the size of the argv array * @param wid: the group number of the application * @param rankid: the rank of the MPI process * @param invoke: not zero iff this is not a restart * @return the pid of the new process or -1 if error. */int ckptForkExec(char **argv, int argc, int args, int wid, int rankid, int invoke);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -