MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / Waitany

Function Waitany

Src/Base/AMReX_ParallelDescriptor.cpp:1110–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110void
1111Waitany (Vector<MPI_Request>& reqs, int &index, MPI_Status& status)
1112{
1113 BL_PROFILE_S("ParallelDescriptor::Waitany()");
1114 BL_COMM_PROFILE_WAIT(BLProfiler::Waitany, reqs[0], status, true);
1115 BL_MPI_REQUIRE( MPI_Waitany(reqs.size(),
1116 reqs.dataPtr(),
1117 &index,
1118 &status) );
1119 BL_COMM_PROFILE_WAIT(BLProfiler::Waitany, reqs[index], status, false);
1120}
1121
1122void
1123Waitsome (Vector<MPI_Request>& reqs, int& completed,

Callers 2

CollectDataMethod · 0.85
WaitAnyRegionFunction · 0.85

Calls 2

sizeMethod · 0.45
dataPtrMethod · 0.45

Tested by 1

WaitAnyRegionFunction · 0.68