2004-01-29 21:21:55 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-04-06 08:39:09 +04:00
|
|
|
#include "attribute/attribute.h"
|
2004-01-29 21:21:55 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Win_create_keyval = PMPI_Win_create_keyval
|
|
|
|
#endif
|
|
|
|
|
2004-04-20 22:50:43 +04:00
|
|
|
#if LAM_PROFILING_DEFINES
|
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-01-29 21:21:55 +03:00
|
|
|
int MPI_Win_create_keyval(MPI_Win_copy_attr_function *win_copy_attr_fn,
|
|
|
|
MPI_Win_delete_attr_function *win_delete_attr_fn,
|
|
|
|
int *win_keyval, void *extra_state) {
|
2004-04-06 08:39:09 +04:00
|
|
|
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
if ((NULL == win_copy_attr_fn) || (NULL == win_delete_attr_fn) ||
|
|
|
|
(NULL == win_keyval))
|
|
|
|
return MPI_ERR_ARG;
|
|
|
|
|
|
|
|
ret = lam_attr_create_keyval(WIN_ATTR, (void *)win_copy_attr_fn,
|
|
|
|
(void *)win_delete_attr_fn,
|
|
|
|
win_keyval, extra_state, 0);
|
|
|
|
|
|
|
|
/* Error handling code here */
|
|
|
|
|
|
|
|
return ret;
|
2004-01-29 21:21:55 +03:00
|
|
|
}
|