Skip to content
Snippets Groups Projects

default initialize MPI_Requests

Merged Praetorius, Simon requested to merge feature/mpi_wrapper_library into master
4 files
+ 15
15
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -70,7 +70,7 @@ namespace AMDiS { namespace Mpi
int size = 1;
MPI_Comm_size(comm, &size);
out.resize(size);
MPI_Request request;
MPI_Request request = MPI_REQUEST_NULL;
MPI_Iallgather(to_void_ptr(&in), 1, type_to_mpi<T>(), to_void_ptr(out.data()), 1, type_to_mpi<T>(), comm, &request);
return {request};
@@ -82,7 +82,7 @@ namespace AMDiS { namespace Mpi
int size = 1;
MPI_Comm_size(comm, &size);
out.resize(size * N);
MPI_Request request;
MPI_Request request = MPI_REQUEST_NULL;
MPI_Iallgather(to_void_ptr(in.data()), N, type_to_mpi<T>(), to_void_ptr(out.data()), N, type_to_mpi<T>(), comm, &request);
return {request};
Loading