Skip to content

Commit

Permalink
#1163: collective: check MPI communicator for nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 27, 2020
1 parent 65408f6 commit a66cb35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vt/collective/startup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ RuntimePtrType initialize(int& argc, char**& argv, MPI_Comm* comm) {
RuntimePtrType initialize(MPI_Comm* comm) {
int argc = 0;
char** argv = nullptr;
return CollectiveOps::initialize(argc,argv,no_workers,true,comm);
bool const is_interop = comm != nullptr;
return CollectiveOps::initialize(argc,argv,no_workers,is_interop,comm);
}

void finalize(RuntimePtrType in_rt) {
Expand Down

0 comments on commit a66cb35

Please sign in to comment.