Skip to content
Snippets Groups Projects
Commit 64b7dc81 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge branch 'JUWELS_commits' into 'master'

Adjust JUWELS environment to default stage; small bug fix

See merge request ogs/ogs!5197
parents 47b51425 d38712c8
No related branches found
No related tags found
No related merge requests found
......@@ -101,10 +101,8 @@ static std::vector<T> allgather(T const& value, Mpi const& mpi)
{
std::vector<T> result(mpi.size);
result[mpi.rank] = value;
MPI_Allgather(&result[mpi.rank], 1, mpiType<T>(), result.data(), 1,
mpiType<T>(), mpi.communicator);
MPI_Allgather(&value, 1, mpiType<T>(), result.data(), 1, mpiType<T>(),
mpi.communicator);
return result;
}
......@@ -116,10 +114,8 @@ static std::vector<T> allgather(std::vector<T> const& vector, Mpi const& mpi)
// Flat in memory over all ranks;
std::vector<T> result(mpi.size * size);
std::copy_n(vector.begin(), size, &result[mpi.rank * size]);
MPI_Allgather(&result[mpi.rank * size], size, mpiType<T>(), result.data(),
size, mpiType<T>(), mpi.communicator);
MPI_Allgather(vector.data(), size, mpiType<T>(), result.data(), size,
mpiType<T>(), mpi.communicator);
return result;
}
......
# previous version Stages/2023 can be used as long as it is supported by JUWELS
# the module versions can be found in git history
module load Stages/2024
module load Stages/2025
module load GCC
module load ParaStationMPI
module load CMake
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment