101101
102102static int rsh_init (void );
103103static int rsh_launch (orte_job_t * jdata );
104- static int remote_spawn (opal_buffer_t * launch );
104+ static int remote_spawn (void );
105105static int rsh_terminate_orteds (void );
106106static int rsh_finalize (void );
107107
@@ -784,7 +784,7 @@ static void ssh_child(int argc, char **argv)
784784/*
785785 * launch a set of daemons from a remote daemon
786786 */
787- static int remote_spawn (opal_buffer_t * launch )
787+ static int remote_spawn ()
788788{
789789 int node_name_index1 ;
790790 int proc_vpid_index ;
@@ -793,7 +793,6 @@ static int remote_spawn(opal_buffer_t *launch)
793793 int argc ;
794794 int rc = ORTE_SUCCESS ;
795795 bool failed_launch = true;
796- orte_std_cntr_t n ;
797796 orte_process_name_t target ;
798797 orte_plm_rsh_caddy_t * caddy ;
799798 orte_job_t * daemons ;
@@ -808,23 +807,15 @@ static int remote_spawn(opal_buffer_t *launch)
808807 /* if we hit any errors, tell the HNP it was us */
809808 target .vpid = ORTE_PROC_MY_NAME -> vpid ;
810809
811- if (NULL != launch ) {
812- /* extract the prefix from the launch buffer */
813- n = 1 ;
814- if (ORTE_SUCCESS != (rc = opal_dss .unpack (launch , & prefix , & n , OPAL_STRING ))) {
815- ORTE_ERROR_LOG (rc );
816- goto cleanup ;
817- }
810+ /* check to see if enable-orterun-prefix-by-default was given - if
811+ * this is being done by a singleton, then orterun will not be there
812+ * to put the prefix in the app. So make sure we check to find it */
813+ if ((bool )ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT ) {
814+ prefix = strdup (opal_install_dirs .prefix );
818815 } else {
819- /* check to see if enable-orterun-prefix-by-default was given - if
820- * this is being done by a singleton, then orterun will not be there
821- * to put the prefix in the app. So make sure we check to find it */
822- if ((bool )ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT ) {
823- prefix = strdup (opal_install_dirs .prefix );
824- } else {
825- prefix = NULL ;
826- }
816+ prefix = NULL ;
827817 }
818+
828819 /* get the updated routing list */
829820 rtmod = orte_rml .get_routed (orte_coll_conduit );
830821 OBJ_CONSTRUCT (& coll , opal_list_t );
@@ -1180,24 +1171,8 @@ static void launch_daemons(int fd, short args, void *cbdata)
11801171
11811172 /* if we are tree launching, find our children and create the launch cmd */
11821173 if (!mca_plm_rsh_component .no_tree_spawn ) {
1183- orte_daemon_cmd_flag_t command = ORTE_DAEMON_TREE_SPAWN ;
11841174 orte_job_t * jdatorted ;
11851175
1186- /* get the tree spawn buffer */
1187- orte_tree_launch_cmd = OBJ_NEW (opal_buffer_t );
1188- /* insert the tree_spawn cmd */
1189- if (ORTE_SUCCESS != (rc = opal_dss .pack (orte_tree_launch_cmd , & command , 1 , ORTE_DAEMON_CMD ))) {
1190- ORTE_ERROR_LOG (rc );
1191- OBJ_RELEASE (orte_tree_launch_cmd );
1192- goto cleanup ;
1193- }
1194- /* pack the prefix since this will be needed by the next wave */
1195- if (ORTE_SUCCESS != (rc = opal_dss .pack (orte_tree_launch_cmd , & prefix_dir , 1 , OPAL_STRING ))) {
1196- ORTE_ERROR_LOG (rc );
1197- OBJ_RELEASE (orte_tree_launch_cmd );
1198- goto cleanup ;
1199- }
1200-
12011176 /* get the orted job data object */
12021177 if (NULL == (jdatorted = orte_get_job_data_object (ORTE_PROC_MY_NAME -> jobid ))) {
12031178 ORTE_ERROR_LOG (ORTE_ERR_NOT_FOUND );
0 commit comments