2004-01-20 06:30:33 +00:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
2004-06-07 15:33:53 +00:00
|
|
|
#include "ompi_config.h"
|
2004-01-20 06:30:33 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 18:45:16 +00:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-06-24 16:47:00 +00:00
|
|
|
#include "mca/pml/pml.h"
|
|
|
|
#include "mca/pml/base/pml_base_bsend.h"
|
2004-01-20 06:30:33 +00:00
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
|
2004-01-20 06:30:33 +00:00
|
|
|
#pragma weak MPI_Buffer_detach = PMPI_Buffer_detach
|
|
|
|
#endif
|
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
#if OMPI_PROFILING_DEFINES
|
2004-04-20 18:50:43 +00:00
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-07-30 02:58:53 +00:00
|
|
|
static const char FUNC_NAME[] = "MPI_Buffer_detach";
|
|
|
|
|
|
|
|
|
2004-06-24 16:47:00 +00:00
|
|
|
int MPI_Buffer_detach(void *buffer, int *size)
|
|
|
|
{
|
2004-07-30 02:58:53 +00:00
|
|
|
if (MPI_PARAM_CHECK) {
|
|
|
|
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
|
|
|
if (NULL == buffer || NULL == size || *size < 0) {
|
|
|
|
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG, FUNC_NAME);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return mca_pml_base_bsend_detach(buffer, size);
|
2004-01-20 06:30:33 +00:00
|
|
|
}
|