* fixes ticket #730 for supporting both of the pre-errata argument set and
post-errata argument set of MPI::Win::Get_attr This commit was SVN r13063.
Этот коммит содержится в:
родитель
03112254e7
Коммит
ff1dd4f16d
@ -151,6 +151,11 @@ public:
|
|||||||
|
|
||||||
static void Free_keyval(int& win_keyval);
|
static void Free_keyval(int& win_keyval);
|
||||||
|
|
||||||
|
// version 1: pre-errata Get_attr (not correct, but probably nice to support
|
||||||
|
bool Get_attr(const Win& win, int win_keyval,
|
||||||
|
void* attribute_val) const;
|
||||||
|
|
||||||
|
// version 2: post-errata Get_attr (correct, but no one seems to know about it)
|
||||||
bool Get_attr(int win_keyval, void* attribute_val) const;
|
bool Get_attr(int win_keyval, void* attribute_val) const;
|
||||||
|
|
||||||
virtual void Get_name(char* win_name, int& resultlen) const;
|
virtual void Get_name(char* win_name, int& resultlen) const;
|
||||||
|
@ -181,7 +181,6 @@ MPI::Win::Call_errhandler(int errorcode) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
MPI::Win::Delete_attr(int win_keyval)
|
MPI::Win::Delete_attr(int win_keyval)
|
||||||
{
|
{
|
||||||
@ -189,6 +188,18 @@ MPI::Win::Delete_attr(int win_keyval)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// version 1: pre-errata Get_attr (not correct, but probably nice to support
|
||||||
|
inline bool
|
||||||
|
MPI::Win::Get_attr(const Win& win, int win_keyval,
|
||||||
|
void* attribute_val) const
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
(void) MPI_Win_get_attr(win, win_keyval, attribute_val, &ret);
|
||||||
|
return OPAL_INT_TO_BOOL(ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// version 2: post-errata Get_attr (correct, but no one seems to know about it)
|
||||||
inline bool
|
inline bool
|
||||||
MPI::Win::Get_attr(int win_keyval, void* attribute_val) const
|
MPI::Win::Get_attr(int win_keyval, void* attribute_val) const
|
||||||
{
|
{
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user