mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
dummy mpi-waitany for non-parallel
This commit is contained in:
parent
eef95eed52
commit
212c5dd130
@ -347,14 +347,14 @@ namespace ngcore
|
|||||||
|
|
||||||
}; // class NgMPI_Comm
|
}; // class NgMPI_Comm
|
||||||
|
|
||||||
NETGEN_INLINE void MyMPI_WaitAll (FlatArray<MPI_Request> requests)
|
inline void MyMPI_WaitAll (FlatArray<MPI_Request> requests)
|
||||||
{
|
{
|
||||||
static Timer t("MPI - WaitAll"); RegionTimer reg(t);
|
static Timer t("MPI - WaitAll"); RegionTimer reg(t);
|
||||||
if (!requests.Size()) return;
|
if (!requests.Size()) return;
|
||||||
MPI_Waitall (requests.Size(), requests.Data(), MPI_STATUSES_IGNORE);
|
MPI_Waitall (requests.Size(), requests.Data(), MPI_STATUSES_IGNORE);
|
||||||
}
|
}
|
||||||
|
|
||||||
NETGEN_INLINE int MyMPI_WaitAny (FlatArray<MPI_Request> requests)
|
inline int MyMPI_WaitAny (FlatArray<MPI_Request> requests)
|
||||||
{
|
{
|
||||||
int nr;
|
int nr;
|
||||||
MPI_Waitany (requests.Size(), requests.Data(), &nr, MPI_STATUS_IGNORE);
|
MPI_Waitany (requests.Size(), requests.Data(), &nr, MPI_STATUS_IGNORE);
|
||||||
@ -433,7 +433,8 @@ namespace ngcore
|
|||||||
{ return *this; }
|
{ return *this; }
|
||||||
};
|
};
|
||||||
|
|
||||||
NETGEN_INLINE void MyMPI_WaitAll (FlatArray<MPI_Request> requests) { ; }
|
inline void MyMPI_WaitAll (FlatArray<MPI_Request> requests) { ; }
|
||||||
|
inline int MyMPI_WaitAny (FlatArray<MPI_Request> requests) { return 0; }
|
||||||
|
|
||||||
#endif // PARALLEL
|
#endif // PARALLEL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user