2004-01-07 21:39:46 +00:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-01-08 13:40:30 +00:00
|
|
|
|
2004-01-10 23:07:38 +00:00
|
|
|
#include "lam_config.h"
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 18:45:16 +00:00
|
|
|
#include "mpi/f77/bindings.h"
|
2004-01-10 23:07:38 +00:00
|
|
|
|
2004-01-17 02:44:33 +00:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILE_LAYER
|
2004-01-10 23:07:38 +00:00
|
|
|
#pragma weak PMPI_COMM_GET_NAME = mpi_comm_get_name_f
|
|
|
|
#pragma weak pmpi_comm_get_name = mpi_comm_get_name_f
|
|
|
|
#pragma weak pmpi_comm_get_name_ = mpi_comm_get_name_f
|
|
|
|
#pragma weak pmpi_comm_get_name__ = mpi_comm_get_name_f
|
2004-01-17 02:44:33 +00:00
|
|
|
#elif LAM_PROFILE_LAYER
|
|
|
|
LAM_GENERATE_F77_BINDINGS (PMPI_COMM_GET_NAME,
|
|
|
|
pmpi_comm_get_name,
|
|
|
|
pmpi_comm_get_name_,
|
|
|
|
pmpi_comm_get_name__,
|
2004-02-08 23:19:45 +00:00
|
|
|
pmpi_comm_get_name_f,
|
2004-01-17 02:44:33 +00:00
|
|
|
(MPI_Fint *comm, char *name, MPI_Fint *l, MPI_Fint *ierror, MPI_Fint charlen),
|
|
|
|
(comm, name, l, ierror, charlen))
|
2004-01-10 23:07:38 +00:00
|
|
|
#endif
|
2004-01-17 02:44:33 +00:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS
|
|
|
|
#pragma weak MPI_COMM_GET_NAME = mpi_comm_get_name_f
|
|
|
|
#pragma weak mpi_comm_get_name = mpi_comm_get_name_f
|
|
|
|
#pragma weak mpi_comm_get_name_ = mpi_comm_get_name_f
|
|
|
|
#pragma weak mpi_comm_get_name__ = mpi_comm_get_name_f
|
2004-01-10 23:07:38 +00:00
|
|
|
#endif
|
|
|
|
|
2004-01-17 02:44:33 +00:00
|
|
|
#if ! LAM_PROFILE_LAYER && ! LAM_HAVE_WEAK_SYMBOLS
|
|
|
|
LAM_GENERATE_F77_BINDINGS (MPI_COMM_GET_NAME,
|
|
|
|
mpi_comm_get_name,
|
|
|
|
mpi_comm_get_name_,
|
|
|
|
mpi_comm_get_name__,
|
|
|
|
mpi_comm_get_name_f,
|
|
|
|
(MPI_Fint *comm, char *name, MPI_Fint *l, MPI_Fint *ierror, MPI_Fint charlen),
|
|
|
|
(comm, name, l, ierror, charlen))
|
|
|
|
#endif
|
|
|
|
|
2004-01-10 23:07:38 +00:00
|
|
|
|
|
|
|
void
|
2004-01-17 02:44:33 +00:00
|
|
|
mpi_comm_get_name_f(MPI_Fint *comm, char *name, MPI_Fint *l, MPI_Fint *ierror, MPI_Fint charlen)
|
2004-01-10 23:07:38 +00:00
|
|
|
{
|
|
|
|
MPI_Comm c_comm = MPI_COMM_WORLD;
|
|
|
|
|
|
|
|
*ierror = MPI_Comm_get_name(c_comm, name, l);
|
|
|
|
}
|