|
|
|
@ -178,264 +178,257 @@ extern "C"
|
|
|
|
|
#define MilanRealMin MINUS_INFINITY
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef OPENMP
|
|
|
|
|
/* These functions are only used in the experimental OMP implementation, if that
|
|
|
|
|
is disabled there is no reason to actually compile or reference them. */
|
|
|
|
|
|
|
|
|
|
// Function of find the owner of a ghost vertex using binary search:
|
|
|
|
|
MilanInt findOwnerOfGhost(MilanLongInt vtxIndex, MilanLongInt *mVerDistance,
|
|
|
|
|
MilanInt myRank, MilanInt numProcs);
|
|
|
|
|
|
|
|
|
|
MilanLongInt firstComputeCandidateMate(MilanLongInt adj1,
|
|
|
|
|
MilanLongInt adj2,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanReal *edgeLocWeight);
|
|
|
|
|
|
|
|
|
|
void queuesTransfer(vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
bool isAlreadyMatched(MilanLongInt node,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap);
|
|
|
|
|
|
|
|
|
|
MilanLongInt computeCandidateMate(MilanLongInt adj1,
|
|
|
|
|
MilanLongInt adj2,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt k,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap);
|
|
|
|
|
|
|
|
|
|
void initialize(MilanLongInt NLVer, MilanLongInt NLEdge,
|
|
|
|
|
MilanLongInt StartIndex, MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *numGhostEdgesPtr,
|
|
|
|
|
MilanLongInt *numGhostVerticesPtr,
|
|
|
|
|
MilanLongInt *S,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
vector<MilanLongInt> &verGhostPtr,
|
|
|
|
|
vector<MilanLongInt> &verGhostInd,
|
|
|
|
|
vector<MilanLongInt> &tempCounter,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
vector<MilanLongInt> &Message,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
MilanLongInt *&candidateMate,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
void clean(MilanLongInt NLVer,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanLongInt MessageIndex,
|
|
|
|
|
vector<MPI_Request> &SRequest,
|
|
|
|
|
vector<MPI_Status> &SStatus,
|
|
|
|
|
MilanInt BufferSize,
|
|
|
|
|
MilanLongInt *Buffer,
|
|
|
|
|
MilanLongInt msgActual,
|
|
|
|
|
MilanLongInt *msgActualSent,
|
|
|
|
|
MilanLongInt msgInd,
|
|
|
|
|
MilanLongInt *msgIndSent,
|
|
|
|
|
MilanLongInt NumMessagesBundled,
|
|
|
|
|
MilanReal *msgPercent);
|
|
|
|
|
|
|
|
|
|
void PARALLEL_COMPUTE_CANDIDATE_MATE_B(MilanLongInt NLVer,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *candidateMate);
|
|
|
|
|
|
|
|
|
|
void PARALLEL_PROCESS_EXPOSED_VERTEX_B(MilanLongInt NLVer,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *NumMessagesBundledPtr,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
void PROCESS_CROSS_EDGE(MilanLongInt *edge,
|
|
|
|
|
MilanLongInt *SPtr);
|
|
|
|
|
|
|
|
|
|
void processMatchedVertices(
|
|
|
|
|
MilanLongInt NLVer,
|
|
|
|
|
vector<MilanLongInt> &UChunkBeingProcessed,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *NumMessagesBundledPtr,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
void processMatchedVerticesAndSendMessages(
|
|
|
|
|
MilanLongInt NLVer,
|
|
|
|
|
vector<MilanLongInt> &UChunkBeingProcessed,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *NumMessagesBundledPtr,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner,
|
|
|
|
|
MPI_Comm comm,
|
|
|
|
|
MilanLongInt *msgActual,
|
|
|
|
|
vector<MilanLongInt> &Message);
|
|
|
|
|
|
|
|
|
|
void sendBundledMessages(MilanLongInt *numGhostEdgesPtr,
|
|
|
|
|
MilanInt *BufferSizePtr,
|
|
|
|
|
MilanLongInt *Buffer,
|
|
|
|
|
vector<MilanLongInt> &PCumulative,
|
|
|
|
|
vector<MilanLongInt> &PMessageBundle,
|
|
|
|
|
vector<MilanLongInt> &PSizeInfoMessages,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
MilanLongInt NumMessagesBundled,
|
|
|
|
|
MilanLongInt *msgActualPtr,
|
|
|
|
|
MilanLongInt *MessageIndexPtr,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MPI_Comm comm,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MPI_Request> &SRequest,
|
|
|
|
|
vector<MPI_Status> &SStatus);
|
|
|
|
|
|
|
|
|
|
void processMessages(
|
|
|
|
|
MilanLongInt NLVer,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *msgActualPtr,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt k,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MPI_Comm comm,
|
|
|
|
|
vector<MilanLongInt> &Message,
|
|
|
|
|
MilanLongInt numGhostEdges,
|
|
|
|
|
MilanLongInt u,
|
|
|
|
|
MilanLongInt v,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
vector<MilanLongInt> &U);
|
|
|
|
|
|
|
|
|
|
void extractUChunk(
|
|
|
|
|
vector<MilanLongInt> &UChunkBeingProcessed,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU);
|
|
|
|
|
|
|
|
|
|
void dalgoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateCMP(
|
|
|
|
|
MilanLongInt NLVer, MilanLongInt NLEdge,
|
|
|
|
|
MilanLongInt *verLocPtr, MilanLongInt *verLocInd, MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
MilanInt myRank, MilanInt numProcs, MPI_Comm comm,
|
|
|
|
|
MilanLongInt *msgIndSent, MilanLongInt *msgActualSent, MilanReal *msgPercent,
|
|
|
|
|
MilanReal *ph0_time, MilanReal *ph1_time, MilanReal *ph2_time,
|
|
|
|
|
MilanLongInt *ph1_card, MilanLongInt *ph2_card);
|
|
|
|
|
#endif
|
|
|
|
|
// Function of find the owner of a ghost vertex using binary search:
|
|
|
|
|
MilanInt findOwnerOfGhost(MilanLongInt vtxIndex, MilanLongInt *mVerDistance,
|
|
|
|
|
MilanInt myRank, MilanInt numProcs);
|
|
|
|
|
|
|
|
|
|
MilanLongInt firstComputeCandidateMateD(MilanLongInt adj1,
|
|
|
|
|
MilanLongInt adj2,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanReal *edgeLocWeight);
|
|
|
|
|
|
|
|
|
|
void queuesTransfer(vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
bool isAlreadyMatched(MilanLongInt node,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap);
|
|
|
|
|
|
|
|
|
|
MilanLongInt computeCandidateMateD(MilanLongInt adj1,
|
|
|
|
|
MilanLongInt adj2,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt k,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap);
|
|
|
|
|
|
|
|
|
|
void initialize(MilanLongInt NLVer, MilanLongInt NLEdge,
|
|
|
|
|
MilanLongInt StartIndex, MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *numGhostEdgesPtr,
|
|
|
|
|
MilanLongInt *numGhostVerticesPtr,
|
|
|
|
|
MilanLongInt *S,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
vector<MilanLongInt> &verGhostPtr,
|
|
|
|
|
vector<MilanLongInt> &verGhostInd,
|
|
|
|
|
vector<MilanLongInt> &tempCounter,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
vector<MilanLongInt> &Message,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
MilanLongInt *&candidateMate,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
void clean(MilanLongInt NLVer,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanLongInt MessageIndex,
|
|
|
|
|
vector<MPI_Request> &SRequest,
|
|
|
|
|
vector<MPI_Status> &SStatus,
|
|
|
|
|
MilanInt BufferSize,
|
|
|
|
|
MilanLongInt *Buffer,
|
|
|
|
|
MilanLongInt msgActual,
|
|
|
|
|
MilanLongInt *msgActualSent,
|
|
|
|
|
MilanLongInt msgInd,
|
|
|
|
|
MilanLongInt *msgIndSent,
|
|
|
|
|
MilanLongInt NumMessagesBundled,
|
|
|
|
|
MilanReal *msgPercent);
|
|
|
|
|
|
|
|
|
|
void PARALLEL_COMPUTE_CANDIDATE_MATE_BD(MilanLongInt NLVer,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *candidateMate);
|
|
|
|
|
|
|
|
|
|
void PARALLEL_PROCESS_EXPOSED_VERTEX_B(MilanLongInt NLVer,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *NumMessagesBundledPtr,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
void PROCESS_CROSS_EDGE(MilanLongInt *edge,
|
|
|
|
|
MilanLongInt *SPtr);
|
|
|
|
|
|
|
|
|
|
void processMatchedVerticesD(
|
|
|
|
|
MilanLongInt NLVer,
|
|
|
|
|
vector<MilanLongInt> &UChunkBeingProcessed,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *NumMessagesBundledPtr,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner);
|
|
|
|
|
|
|
|
|
|
void processMatchedVerticesAndSendMessagesD(
|
|
|
|
|
MilanLongInt NLVer,
|
|
|
|
|
vector<MilanLongInt> &UChunkBeingProcessed,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *NumMessagesBundledPtr,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MilanLongInt> &privateQLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &privateQMsgType,
|
|
|
|
|
vector<MilanInt> &privateQOwner,
|
|
|
|
|
MPI_Comm comm,
|
|
|
|
|
MilanLongInt *msgActual,
|
|
|
|
|
vector<MilanLongInt> &Message);
|
|
|
|
|
|
|
|
|
|
void sendBundledMessages(MilanLongInt *numGhostEdgesPtr,
|
|
|
|
|
MilanInt *BufferSizePtr,
|
|
|
|
|
MilanLongInt *Buffer,
|
|
|
|
|
vector<MilanLongInt> &PCumulative,
|
|
|
|
|
vector<MilanLongInt> &PMessageBundle,
|
|
|
|
|
vector<MilanLongInt> &PSizeInfoMessages,
|
|
|
|
|
MilanLongInt *PCounter,
|
|
|
|
|
MilanLongInt NumMessagesBundled,
|
|
|
|
|
MilanLongInt *msgActualPtr,
|
|
|
|
|
MilanLongInt *MessageIndexPtr,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MPI_Comm comm,
|
|
|
|
|
vector<MilanLongInt> &QLocalVtx,
|
|
|
|
|
vector<MilanLongInt> &QGhostVtx,
|
|
|
|
|
vector<MilanLongInt> &QMsgType,
|
|
|
|
|
vector<MilanInt> &QOwner,
|
|
|
|
|
vector<MPI_Request> &SRequest,
|
|
|
|
|
vector<MPI_Status> &SStatus);
|
|
|
|
|
|
|
|
|
|
void processMessagesD(
|
|
|
|
|
MilanLongInt NLVer,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
MilanLongInt *candidateMate,
|
|
|
|
|
map<MilanLongInt, MilanLongInt> &Ghost2LocalMap,
|
|
|
|
|
vector<MilanLongInt> &GMate,
|
|
|
|
|
vector<MilanLongInt> &Counter,
|
|
|
|
|
MilanLongInt StartIndex,
|
|
|
|
|
MilanLongInt EndIndex,
|
|
|
|
|
MilanLongInt *myCardPtr,
|
|
|
|
|
MilanLongInt *msgIndPtr,
|
|
|
|
|
MilanLongInt *msgActualPtr,
|
|
|
|
|
MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *verLocPtr,
|
|
|
|
|
MilanLongInt k,
|
|
|
|
|
MilanLongInt *verLocInd,
|
|
|
|
|
MilanInt numProcs,
|
|
|
|
|
MilanInt myRank,
|
|
|
|
|
MPI_Comm comm,
|
|
|
|
|
vector<MilanLongInt> &Message,
|
|
|
|
|
MilanLongInt numGhostEdges,
|
|
|
|
|
MilanLongInt u,
|
|
|
|
|
MilanLongInt v,
|
|
|
|
|
MilanLongInt *SPtr,
|
|
|
|
|
vector<MilanLongInt> &U);
|
|
|
|
|
|
|
|
|
|
void extractUChunk(
|
|
|
|
|
vector<MilanLongInt> &UChunkBeingProcessed,
|
|
|
|
|
vector<MilanLongInt> &U,
|
|
|
|
|
vector<MilanLongInt> &privateU);
|
|
|
|
|
|
|
|
|
|
void dalgoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateCMP(
|
|
|
|
|
MilanLongInt NLVer, MilanLongInt NLEdge,
|
|
|
|
|
MilanLongInt *verLocPtr, MilanLongInt *verLocInd, MilanReal *edgeLocWeight,
|
|
|
|
|
MilanLongInt *verDistance,
|
|
|
|
|
MilanLongInt *Mate,
|
|
|
|
|
MilanInt myRank, MilanInt numProcs, MPI_Comm comm,
|
|
|
|
|
MilanLongInt *msgIndSent, MilanLongInt *msgActualSent, MilanReal *msgPercent,
|
|
|
|
|
MilanReal *ph0_time, MilanReal *ph1_time, MilanReal *ph2_time,
|
|
|
|
|
MilanLongInt *ph1_card, MilanLongInt *ph2_card);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef OPENMP
|
|
|
|
|
//Function of find the owner of a ghost vertex using binary search:
|
|
|
|
|
inline MilanInt findOwnerOfGhost(MilanLongInt vtxIndex, MilanLongInt *mVerDistance,
|
|
|
|
|
MilanInt myRank, MilanInt numProcs);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
void dalgoDistEdgeApproxDomEdgesLinearSearchMesgBndlSmallMateC(
|
|
|
|
|
MilanLongInt NLVer, MilanLongInt NLEdge,
|
|
|
|
|