DisCostiC v2.0.0
Distributed Cost in Cluster: a cross-architecture simulator for massively parallel MPI programs
Loading...
Searching...
No Matches
UserInterface::TimeRankOP Class Reference

end class TimeRankOP More...

#include <TimeRankOP.hpp>

Public Member Functions

 TimeRankOP (UserInterface::ConfigParser *args_info, DisCosTiC_Datatype rank, int totalrank)
 constructor that initializes the coordinates
 
void osend (DisCosTiC_Datatype rank, DisCosTiC_Datatype start, DisCosTiC_Datatype end, DisCosTiC_Datatype cpu, float r=0.0, float g=0.0, float b=1.0)
 print time taken by overhead at sender side to output file
 
void orecv (DisCosTiC_Datatype rank, DisCosTiC_Datatype start, DisCosTiC_Datatype end, DisCosTiC_Datatype cpu, float r=0.0, float g=0.0, float b=1.0)
 print time taken by overhead at receiver side to output file
 
void comp (DisCosTiC_Datatype rank, DisCosTiC_Datatype start, DisCosTiC_Datatype end, DisCosTiC_Datatype cpu, float r=1.0, float g=0.0, float b=0.0)
 print time taken by execution to output file
 
void msg (DisCosTiC_Datatype source, DisCosTiC_Datatype dest, DisCosTiC_Datatype starttime, DisCosTiC_Datatype endtime, DisCosTiC_Datatype size, DisCosTiC_Datatype G, float r=0.0, float g=0.0, float b=1.0)
 print time taken by message transmission to output file
 
 ~TimeRankOP ()
 destructor
 

Private Member Functions

void ranknum (DisCosTiC_Datatype numranks)
 print number of processes to output file
 
void file_write (bool append)
 print all events (i.e., osend, orecv, execution, msg transmission) to output file
 

Private Attributes

std::string content
 private variables
 
std::string filename
 

Detailed Description

end class TimeRankOP

Definition at line 20 of file TimeRankOP.hpp.

Constructor & Destructor Documentation

◆ TimeRankOP()

UserInterface::TimeRankOP::TimeRankOP ( UserInterface::ConfigParser * args_info,
DisCosTiC_Datatype rank,
int totalrank )
inline

constructor that initializes the coordinates

Parameters
CFG_argsand number of ranks

Definition at line 63 of file TimeRankOP.hpp.

References filename, UserInterface::ConfigParser::getValue(), and ranknum().

+ Here is the call graph for this function:

◆ ~TimeRankOP()

UserInterface::TimeRankOP::~TimeRankOP ( )
inline

destructor

Definition at line 146 of file TimeRankOP.hpp.

Member Function Documentation

◆ comp()

void UserInterface::TimeRankOP::comp ( DisCosTiC_Datatype rank,
DisCosTiC_Datatype start,
DisCosTiC_Datatype end,
DisCosTiC_Datatype cpu,
float r = 1.0,
float g = 0.0,
float b = 0.0 )
inline

print time taken by execution to output file

Parameters
rank(process number), start (time), end (time), cpu (core number)

Definition at line 109 of file TimeRankOP.hpp.

References AppendString, and content.

Referenced by main().

+ Here is the caller graph for this function:

◆ file_write()

void UserInterface::TimeRankOP::file_write ( bool append)
inlineprivate

print all events (i.e., osend, orecv, execution, msg transmission) to output file

Parameters
append

Definition at line 41 of file TimeRankOP.hpp.

References content, and filename.

◆ msg()

void UserInterface::TimeRankOP::msg ( DisCosTiC_Datatype source,
DisCosTiC_Datatype dest,
DisCosTiC_Datatype starttime,
DisCosTiC_Datatype endtime,
DisCosTiC_Datatype size,
DisCosTiC_Datatype G,
float r = 0.0,
float g = 0.0,
float b = 1.0 )
inline

print time taken by message transmission to output file

Parameters
rank(process number), start (time), end (time), cpu (core number)

Definition at line 127 of file TimeRankOP.hpp.

References AppendString, and content.

◆ orecv()

void UserInterface::TimeRankOP::orecv ( DisCosTiC_Datatype rank,
DisCosTiC_Datatype start,
DisCosTiC_Datatype end,
DisCosTiC_Datatype cpu,
float r = 0.0,
float g = 0.0,
float b = 1.0 )
inline

print time taken by overhead at receiver side to output file

Parameters
rank(process number), start (time), end (time), cpu (core number)

Definition at line 91 of file TimeRankOP.hpp.

References AppendString, and content.

Referenced by main().

+ Here is the caller graph for this function:

◆ osend()

void UserInterface::TimeRankOP::osend ( DisCosTiC_Datatype rank,
DisCosTiC_Datatype start,
DisCosTiC_Datatype end,
DisCosTiC_Datatype cpu,
float r = 0.0,
float g = 0.0,
float b = 1.0 )
inline

print time taken by overhead at sender side to output file

Parameters
rank(process number), start (time), end (time), cpu (core number)

Definition at line 73 of file TimeRankOP.hpp.

References AppendString, and content.

Referenced by main().

+ Here is the caller graph for this function:

◆ ranknum()

void UserInterface::TimeRankOP::ranknum ( DisCosTiC_Datatype numranks)
inlineprivate

print number of processes to output file

Parameters
numranks(total number of process)

Definition at line 30 of file TimeRankOP.hpp.

References AppendString, and content.

Referenced by TimeRankOP().

+ Here is the caller graph for this function:

Member Data Documentation

◆ content

std::string UserInterface::TimeRankOP::content
private

private variables

Definition at line 24 of file TimeRankOP.hpp.

Referenced by comp(), file_write(), msg(), orecv(), osend(), and ranknum().

◆ filename

std::string UserInterface::TimeRankOP::filename
private

Definition at line 24 of file TimeRankOP.hpp.

Referenced by file_write(), and TimeRankOP().


The documentation for this class was generated from the following file: