1
1
openmpi/src/mpi/interface/c/info_dup.c

39 строки
986 B
C
Исходник Обычный вид История

/*
* $HEADER$
*/
#include "lam_config.h"
#include "mpi.h"
#include "mpi/interface/c/bindings.h"
#include "lam/lfc/list.h"
#include "mpi/info/info.h"
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
#pragma weak MPI_Info_dup = PMPI_Info_dup
#endif
/**
* MPI_Info_dup - Duplicate an 'MPI_Info' object
*
* @param info source info object (handle)
* @param newinfo pointer to the new info object (handle)
*
* @retval MPI_SUCCESS
* @retval MPI_ERR_ARG
*
* Not only will the (key, value) pairs be duplicated, the order of keys
* will be the same in 'newinfo' as it is in 'info'.
* When an info object is no longer being used, it should be freed with
* 'MPI_Info_free'.
*/
int MPI_Info_dup(MPI_Info info, MPI_Info *newinfo) {
/**
* Here we need to do 2 things
* 1. Create a newinfo object using MPI_Info_create
* 2. Fetch all the values from info and copy them to
* newinfo using MPI_Info_set
*/
return MPI_SUCCESS;
}