Improving MPI_ANY_SOURCE algo #34
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
TODO
Plan to do in the immediate future
EntangledMPI/src/mpi/init.c
Lines 1090 to 1097 in 11bf509
Not a good implementation. Will only support 2 nodes (1 compute and 1 replica). Should be more generic.
One way of making it generic it to do one
PMPI_Irecv
withMPI_ANY_SOURCE
and spawn a new thread toPMPI_Wait
for this request to complete. Once its complete this thread can check for number of nodes in this job ("n") usingstatus.MPI_SOURCE
andrank2job
array and do "n - 1"PMPI_Irecv
and exit. Rest will be taken care inMPI_Wait
implementation.The text was updated successfully, but these errors were encountered: