Add missing MPI::Request::Get_status methods.
This commit was SVN r8663.
Этот коммит содержится в:
родитель
25375759c3
Коммит
dd142673f4
2
NEWS
2
NEWS
@ -29,6 +29,8 @@ version 1.0.
|
||||
1.0.2
|
||||
-----
|
||||
|
||||
- Add missing MPI::Request::Get_status() methods. Thanks to Bill
|
||||
Saphir for pointing this out to us.
|
||||
- Improved error messages on memory registration errors (e.g., when
|
||||
using high-speed networks).
|
||||
- Open IB support now checks firmware for how many outstanding RDMA
|
||||
|
@ -124,6 +124,9 @@ public:
|
||||
|
||||
virtual void Cancel(void) const;
|
||||
|
||||
virtual bool Get_status(Status& status) const;
|
||||
|
||||
virtual bool Get_status() const;
|
||||
|
||||
protected:
|
||||
#if ! 0 /* OMPI_ENABLE_MPI_PROFILING */
|
||||
|
@ -310,3 +310,24 @@ MPI::Prequest::Startall(int count, MPI:: Prequest array_of_requests[])
|
||||
delete [] mpi_requests;
|
||||
}
|
||||
|
||||
inline bool MPI::Request::Get_status(MPI::Status& status) const
|
||||
{
|
||||
int flag;
|
||||
MPI_Status c_status;
|
||||
|
||||
(void)MPI_Request_get_status(mpi_request, &flag, &c_status);
|
||||
if (flag) {
|
||||
status = c_status;
|
||||
}
|
||||
return (bool) flag;
|
||||
}
|
||||
|
||||
inline bool MPI::Request::Get_status() const
|
||||
{
|
||||
int flag;
|
||||
|
||||
(void)MPI_Request_get_status(mpi_request, &flag, MPI_STATUS_IGNORE);
|
||||
return (bool) flag;
|
||||
}
|
||||
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user