2004-01-07 21:39:46 +00:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-01-08 13:42:23 +00:00
|
|
|
#include "lam_config.h"
|
|
|
|
|
2004-01-07 21:39:46 +00:00
|
|
|
#include "mpi.h"
|
2004-01-10 21:32:32 +00:00
|
|
|
#include "mpi/interface/f77/bindings.h"
|
2004-01-08 13:42:23 +00:00
|
|
|
|
2004-01-17 02:44:33 +00:00
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILE_LAYER
|
|
|
|
#pragma weak PMPI_COMM_SET_NAME = mpi_comm_set_name_f
|
|
|
|
#pragma weak pmpi_comm_set_name = mpi_comm_set_name_f
|
|
|
|
#pragma weak pmpi_comm_set_name_ = mpi_comm_set_name_f
|
|
|
|
#pragma weak pmpi_comm_set_name__ = mpi_comm_set_name_f
|
|
|
|
#elif LAM_PROFILE_LAYER
|
|
|
|
LAM_GENERATE_F77_BINDINGS (PMPI_COMM_SET_NAME,
|
|
|
|
pmpi_comm_set_name,
|
|
|
|
pmpi_comm_set_name_,
|
|
|
|
pmpi_comm_set_name__,
|
2004-02-08 23:19:45 +00:00
|
|
|
pmpi_comm_set_name_f,
|
2004-01-17 02:44:33 +00:00
|
|
|
(MPI_Fint *comm, char *name, MPI_Fint *ierror, MPI_Fint charlen),
|
|
|
|
(comm, name, ierror, charlen))
|
|
|
|
#endif
|
|
|
|
|
2004-01-08 13:42:23 +00:00
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS
|
2004-01-09 08:30:19 +00:00
|
|
|
#pragma weak MPI_COMM_SET_NAME = mpi_comm_set_name_f
|
|
|
|
#pragma weak mpi_comm_set_name = mpi_comm_set_name_f
|
2004-01-08 13:42:23 +00:00
|
|
|
#pragma weak mpi_comm_set_name_ = mpi_comm_set_name_f
|
|
|
|
#pragma weak mpi_comm_set_name__ = mpi_comm_set_name_f
|
|
|
|
#endif
|
2004-01-17 02:44:33 +00:00
|
|
|
|
|
|
|
#if ! LAM_PROFILE_LAYER && ! LAM_HAVE_WEAK_SYMBOLS
|
|
|
|
LAM_GENERATE_F77_BINDINGS (MPI_COMM_SET_NAME,
|
|
|
|
mpi_comm_set_name,
|
|
|
|
mpi_comm_set_name_,
|
|
|
|
mpi_comm_set_name__,
|
|
|
|
mpi_comm_set_name_f,
|
|
|
|
(MPI_Fint *comm, char *name, MPI_Fint *ierror, MPI_Fint charlen),
|
|
|
|
(comm, name, ierror, charlen))
|
2004-01-08 13:42:23 +00:00
|
|
|
#endif
|
2004-01-07 21:39:46 +00:00
|
|
|
|
2004-01-09 08:30:19 +00:00
|
|
|
|
|
|
|
void
|
2004-01-17 02:44:33 +00:00
|
|
|
mpi_comm_set_name_f(MPI_Fint *comm, char *name, MPI_Fint *ierror, MPI_Fint charlen)
|
2004-01-07 21:39:46 +00:00
|
|
|
{
|
|
|
|
/* JMS: Translate comm from int to MPI_Comm */
|
|
|
|
|
|
|
|
MPI_Comm c_comm = MPI_COMM_WORLD;
|
|
|
|
|
2004-01-09 08:30:19 +00:00
|
|
|
*ierror = MPI_Comm_set_name(c_comm, name);
|
2004-01-07 21:39:46 +00:00
|
|
|
}
|