mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
fix AllReduce (array)
This commit is contained in:
parent
2b9d4596ae
commit
c4b679ec5a
@ -258,7 +258,7 @@ namespace ngcore
|
|||||||
void AllReduce (FlatArray<T> d, const MPI_Op & op) const
|
void AllReduce (FlatArray<T> d, const MPI_Op & op) const
|
||||||
{
|
{
|
||||||
static Timer t("MPI - AllReduce Array"); RegionTimer reg(t);
|
static Timer t("MPI - AllReduce Array"); RegionTimer reg(t);
|
||||||
if (size == 1) return d;
|
if (size == 1) return;
|
||||||
|
|
||||||
MPI_Allreduce (MPI_IN_PLACE, d.Data(), d.Size(), GetMPIType<T>(), op, comm);
|
MPI_Allreduce (MPI_IN_PLACE, d.Data(), d.Size(), GetMPIType<T>(), op, comm);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user