101
101
102
102
static int rsh_init (void );
103
103
static int rsh_launch (orte_job_t * jdata );
104
- static int remote_spawn (opal_buffer_t * launch );
104
+ static int remote_spawn (void );
105
105
static int rsh_terminate_orteds (void );
106
106
static int rsh_finalize (void );
107
107
@@ -784,7 +784,7 @@ static void ssh_child(int argc, char **argv)
784
784
/*
785
785
* launch a set of daemons from a remote daemon
786
786
*/
787
- static int remote_spawn (opal_buffer_t * launch )
787
+ static int remote_spawn ()
788
788
{
789
789
int node_name_index1 ;
790
790
int proc_vpid_index ;
@@ -793,7 +793,6 @@ static int remote_spawn(opal_buffer_t *launch)
793
793
int argc ;
794
794
int rc = ORTE_SUCCESS ;
795
795
bool failed_launch = true;
796
- orte_std_cntr_t n ;
797
796
orte_process_name_t target ;
798
797
orte_plm_rsh_caddy_t * caddy ;
799
798
orte_job_t * daemons ;
@@ -808,23 +807,15 @@ static int remote_spawn(opal_buffer_t *launch)
808
807
/* if we hit any errors, tell the HNP it was us */
809
808
target .vpid = ORTE_PROC_MY_NAME -> vpid ;
810
809
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 );
818
815
} 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 ;
827
817
}
818
+
828
819
/* get the updated routing list */
829
820
rtmod = orte_rml .get_routed (orte_coll_conduit );
830
821
OBJ_CONSTRUCT (& coll , opal_list_t );
@@ -1180,24 +1171,8 @@ static void launch_daemons(int fd, short args, void *cbdata)
1180
1171
1181
1172
/* if we are tree launching, find our children and create the launch cmd */
1182
1173
if (!mca_plm_rsh_component .no_tree_spawn ) {
1183
- orte_daemon_cmd_flag_t command = ORTE_DAEMON_TREE_SPAWN ;
1184
1174
orte_job_t * jdatorted ;
1185
1175
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
-
1201
1176
/* get the orted job data object */
1202
1177
if (NULL == (jdatorted = orte_get_job_data_object (ORTE_PROC_MY_NAME -> jobid ))) {
1203
1178
ORTE_ERROR_LOG (ORTE_ERR_NOT_FOUND );
0 commit comments