mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +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
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user