2004-01-26 01:07:54 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "lam_config.h"
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
|
|
|
#include "lfc/lam_list.h"
|
|
|
|
#include "info/info.h"
|
2004-04-21 02:13:39 +04:00
|
|
|
#include "errhandler/errhandler.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-26 01:07:54 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Info_free = PMPI_Info_free
|
|
|
|
#endif
|
|
|
|
|
2004-04-20 22:50:43 +04:00
|
|
|
#if LAM_PROFILING_DEFINES
|
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-02-02 01:28:20 +03:00
|
|
|
/**
|
|
|
|
* MPI_Info_free - Free an 'MPI_Info' object.
|
|
|
|
*
|
|
|
|
* @param info pointer to info object to be freed (handle)
|
|
|
|
*
|
|
|
|
* @retval MPI_SUCCESS
|
|
|
|
* @retval MPI_ERR_ARG
|
|
|
|
*
|
|
|
|
* Upon successful completion, 'info' will be set to 'MPI_INFO_NULL'.
|
|
|
|
*/
|
2004-01-26 01:07:54 +03:00
|
|
|
int MPI_Info_free(MPI_Info *info) {
|
2004-02-04 01:34:01 +03:00
|
|
|
int err;
|
2004-02-02 01:28:20 +03:00
|
|
|
/*
|
|
|
|
* Free all the alloced items from MPI_Info info.
|
|
|
|
* Make sure the items are freed in an orderly
|
|
|
|
* fashion so that there are no dangling pointers.
|
|
|
|
* Also, something needs to be done about the
|
|
|
|
* fortran handle.
|
|
|
|
*/
|
2004-04-21 02:13:39 +04:00
|
|
|
if (MPI_PARAM_CHECK) {
|
|
|
|
if (NULL == info){
|
|
|
|
return LAM_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG,
|
|
|
|
"MPI_Info_free");
|
|
|
|
}
|
2004-02-04 01:34:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2004-02-11 18:23:43 +03:00
|
|
|
* Now call the back end. Once again, it does not look like
|
|
|
|
* there can be any error from this, but then who knows. Have
|
|
|
|
* to recheck this part too.
|
2004-02-04 01:34:01 +03:00
|
|
|
*/
|
2004-02-11 18:23:43 +03:00
|
|
|
err = lam_info_free (info);
|
2004-02-04 01:34:01 +03:00
|
|
|
|
2004-01-26 01:07:54 +03:00
|
|
|
return MPI_SUCCESS;
|
|
|
|
}
|