Commit 6193271f authored by Francois Tessier's avatar Francois Tessier

Add comments

parent a6521157
...@@ -6,20 +6,34 @@ ...@@ -6,20 +6,34 @@
class iTopology { class iTopology {
public: public:
virtual int NetworkDimensions () = 0; /**********************/
/* |-- Nodes */
/**********************/
virtual int ProcessPerNode () = 0; virtual int ProcessPerNode () = 0;
virtual void RankToCoordinates ( int rank, int* coord ) = 0;
virtual void IONodeCoordinates ( int* coord ) = 0;
virtual int IONodeId () = 0; virtual int IONodeId () = 0;
virtual int BridgeNodeId () = 0; virtual int BridgeNodeId () = 0;
/**********************/
/* |-- Network */
/**********************/
virtual int NetworkDimensions () = 0;
/* |---- Coordinates */
virtual void RankToCoordinates ( int rank, int* coord ) = 0;
virtual void IONodeCoordinates ( int* coord ) = 0;
/* |---- Distance */
virtual int DistanceToIONode ( int srcRank ) = 0; virtual int DistanceToIONode ( int srcRank ) = 0;
virtual int DistanceBetweenRanks ( int srcRank, int destRank ) = 0; virtual int DistanceBetweenRanks ( int srcRank, int destRank ) = 0;
/* |---- Routes */
virtual int RouteToIONode ( int srcRank, int* path ) = 0; virtual int RouteToIONode ( int srcRank, int* path ) = 0;
virtual int RouteBetweenRanks ( int srcRank, int destRank, int* path ) = 0; virtual int RouteBetweenRanks ( int srcRank, int destRank, int* path ) = 0;
/* |---- Links */
virtual void LinksList ( int* LinksList ) = 0; virtual void LinksList ( int* LinksList ) = 0;
virtual void LinkToId ( int srcRank, int destRank ) = 0;
}; };
#endif // TOPOLOGY_H #endif // TOPOLOGY_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment