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