2004-01-30 00:42:40 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-30 00:42:40 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-06-16 05:41:01 +04:00
|
|
|
#include "info/info.h"
|
|
|
|
#include "runtime/runtime.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-30 00:42:40 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
|
2004-01-30 00:42:40 +03:00
|
|
|
#pragma weak MPI_Open_port = PMPI_Open_port
|
|
|
|
#endif
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_PROFILING_DEFINES
|
2004-04-20 22:50:43 +04:00
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-07-30 06:58:53 +04:00
|
|
|
static const char FUNC_NAME[] = "MPI_Open_port";
|
2004-06-23 00:21:35 +04:00
|
|
|
|
|
|
|
|
2004-06-16 05:41:01 +04:00
|
|
|
int MPI_Open_port(MPI_Info info, char *port_name)
|
|
|
|
{
|
|
|
|
if ( MPI_PARAM_CHECK ) {
|
2004-06-23 00:21:35 +04:00
|
|
|
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
2004-06-18 23:02:52 +04:00
|
|
|
|
2004-07-30 06:58:53 +04:00
|
|
|
if ( NULL == port_name ) {
|
2004-06-16 05:41:01 +04:00
|
|
|
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG,
|
2004-06-23 00:21:35 +04:00
|
|
|
FUNC_NAME);
|
2004-07-30 06:58:53 +04:00
|
|
|
}
|
2004-06-16 05:41:01 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( MPI_INFO_NULL != info ) {
|
|
|
|
/* in theory, they user might tell us here
|
|
|
|
how to establish the address. Since our communication
|
|
|
|
is relying on OOB, we probably
|
|
|
|
won't use the info-object.
|
|
|
|
|
|
|
|
potential values defined in MPI-2:
|
|
|
|
- "ip_port" : value contains IP port number
|
|
|
|
- "ip_address" : value contains IP address
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
/* According to our current understanding, the port_name will
|
|
|
|
be the OOB-name. No real port has to be opne, since
|
|
|
|
OOB always accepts new connections (e.g. has a pending accept).
|
|
|
|
|
|
|
|
memcpy ( port_name, oob-whatever-fcnt, strlen(oob-whatever-fctn));
|
|
|
|
*/
|
|
|
|
|
2004-07-30 06:58:53 +04:00
|
|
|
/* This function is not yet implemented */
|
|
|
|
|
|
|
|
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_OTHER, FUNC_NAME);
|
2004-01-30 00:42:40 +03:00
|
|
|
}
|