#ifndef _MPIRUN_RSH_H #define _MPIRUN_RSH_H 1 /* * Copyright (C) 1999-2001 The Regents of the University of California * (through E.O. Lawrence Berkeley National Laboratory), subject to * approval by the U.S. Department of Energy. * * Use of this software is under license. The license agreement is included * in the file MVICH_LICENSE.TXT. * * Developed at Berkeley Lab as part of MVICH. * * Authors: Bill Saphir * Michael Welcome */ /* Copyright (c) 2001-2022, The Ohio State University. All rights * reserved. * * This file is part of the MVAPICH2 software package developed by the * team members of The Ohio State University's Network-Based Computing * Laboratory (NBCL), headed by Professor Dhabaleswar K. (DK) Panda. * * For detailed copyright and licensing information, please refer to the * copyright file COPYRIGHT in the top level MVAPICH2 directory. * */ #define BASE_ENV_LEN 17 #define COMMAND_LEN 20000 #define RSH_CMD "@RSH_CMD@" #define SSH_CMD "@SSH_CMD@" #define ENV_CMD "@ENV_CMD@" #define DBG_CMD "@DBG_CMD@" #define XTERM_CMD "@XTERM_CMD@" #define SHELL_CMD "@SHELL_CMD@" #define TOTALVIEW_CMD "@TOTALVIEW_CMD@" #define SRUN_CMD "@SRUN_CMD@" #define SSH_ARG "-q" #define SHELL_ARG "-c" #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include #include #include #include #include #include #ifdef MAC_OSX #include #else #include #endif #include #include #include #include #include #include #include #include #include #include "mpirun_util.h" #include #define PRINT_MVAPICH2_VERSION() printf("Version: mvapich2-" MVAPICH2_VERSION "\n") #define PMGR_VERSION PMGR_COLLECTIVE /*This list is used for dpm to take care of the mpirun_rsh started.*/ typedef struct list_pid_mpirun { pid_t pid; struct list_pid_mpirun *next; } list_pid_mpirun_t; extern int NSPAWNS; #define RUNNING(i) ((plist[i].state == P_STARTED || \ plist[i].state == P_CONNECTED || \ plist[i].state == P_RUNNING) ? 1 : 0) /* other information: a.out and rank are implicit. */ #define SEPARATOR ':' #ifndef PARAM_GLOBAL #define PARAM_GLOBAL "/etc/mvapich.conf" #endif #endif int handle_spawn_req(int readsock); void mpispawn_checkin(int); /* vi:set sw=4 sts=4 tw=80: */