@@ -330,7 +330,7 @@ static void evhandler_dereg_callbk(pmix_status_t status,
330330/**
331331 * @brief Function that starts up the common components needed by all instances
332332 */
333- static int ompi_mpi_instance_init_common (void )
333+ static int ompi_mpi_instance_init_common (int argc , char * * argv )
334334{
335335 int ret ;
336336 ompi_proc_t * * procs ;
@@ -384,7 +384,7 @@ static int ompi_mpi_instance_init_common (void)
384384 OMPI_TIMING_NEXT ("initialization" );
385385
386386 /* Setup RTE */
387- if (OMPI_SUCCESS != (ret = ompi_rte_init (NULL , NULL ))) {
387+ if (OMPI_SUCCESS != (ret = ompi_rte_init (& argc , & argv ))) {
388388 return ompi_instance_print_error ("ompi_mpi_init: ompi_rte_init failed" , ret );
389389 }
390390
@@ -784,7 +784,7 @@ static int ompi_mpi_instance_init_common (void)
784784 return OMPI_SUCCESS ;
785785}
786786
787- int ompi_mpi_instance_init (int ts_level , opal_info_t * info , ompi_errhandler_t * errhandler , ompi_instance_t * * instance )
787+ int ompi_mpi_instance_init (int ts_level , opal_info_t * info , ompi_errhandler_t * errhandler , ompi_instance_t * * instance , int argc , char * * argv )
788788{
789789 ompi_instance_t * new_instance ;
790790 int ret ;
@@ -799,7 +799,7 @@ int ompi_mpi_instance_init (int ts_level, opal_info_t *info, ompi_errhandler_t
799799
800800 opal_mutex_lock (& instance_lock );
801801 if (0 == opal_atomic_fetch_add_32 (& ompi_instance_count , 1 )) {
802- ret = ompi_mpi_instance_init_common ();
802+ ret = ompi_mpi_instance_init_common (argc , argv );
803803 if (OPAL_UNLIKELY (OPAL_SUCCESS != ret )) {
804804 opal_mutex_unlock (& instance_lock );
805805 return ret ;
0 commit comments