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

#include <ItacVtf.hpp>

Public Member Functions

 ItacVtf (UserInterface::ConfigParser *args_info, DisCosTiC_Datatype mpi_rank, DisCosTiC_Datatype)
 
void comp (DisCosTiC_Indextype app_rank, double start_ns, double dur_ns, const std::string &name)
 
void send (DisCosTiC_Indextype src, DisCosTiC_Indextype dst, double start_ns, double dur_ns, double bytes, DisCosTiC_Indextype tag)
 
void recv (DisCosTiC_Indextype dst, DisCosTiC_Indextype src, double start_ns, double dur_ns, double bytes, DisCosTiC_Indextype tag)
 
void collective (DisCosTiC_Indextype app_rank, double start_ns, double dur_ns, const std::string &name)
 
void closeFile ()
 
 ~ItacVtf ()
 

Static Private Member Functions

static long long ns_of (double t)
 
static std::string sanitize (const std::string &name)
 
static bool skip_message (DisCosTiC_Indextype src, DisCosTiC_Indextype dst, double bytes)
 

Private Attributes

std::ofstream ofs
 
std::string filename
 
DisCosTiC_Indextype rank = static_cast<DisCosTiC_Indextype>(-1)
 

Detailed Description

Per-rank ASCII event log for ITAC STF conversion (visualization/events2stf.py). Records modeled SEND/RECV with sender, receiver, time, bytes, and tag. Clock unit is nanoseconds (same as DisCostiC operation.time).

Definition at line 21 of file ItacVtf.hpp.

Constructor & Destructor Documentation

◆ ItacVtf()

UserInterface::ItacVtf::ItacVtf ( UserInterface::ConfigParser * args_info,
DisCosTiC_Datatype mpi_rank,
DisCosTiC_Datatype  )
inline

Definition at line 61 of file ItacVtf.hpp.

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

+ Here is the call graph for this function:

◆ ~ItacVtf()

UserInterface::ItacVtf::~ItacVtf ( )
inline

Definition at line 120 of file ItacVtf.hpp.

References closeFile().

+ Here is the call graph for this function:

Member Function Documentation

◆ closeFile()

void UserInterface::ItacVtf::closeFile ( )
inline

Definition at line 111 of file ItacVtf.hpp.

References ofs.

Referenced by main(), and ~ItacVtf().

+ Here is the caller graph for this function:

◆ collective()

void UserInterface::ItacVtf::collective ( DisCosTiC_Indextype app_rank,
double start_ns,
double dur_ns,
const std::string & name )
inline

Definition at line 102 of file ItacVtf.hpp.

References ns_of(), ofs, and sanitize().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ comp()

void UserInterface::ItacVtf::comp ( DisCosTiC_Indextype app_rank,
double start_ns,
double dur_ns,
const std::string & name )
inline

Definition at line 71 of file ItacVtf.hpp.

References ns_of(), ofs, and sanitize().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ns_of()

static long long UserInterface::ItacVtf::ns_of ( double t)
inlinestaticprivate

Definition at line 28 of file ItacVtf.hpp.

Referenced by collective(), comp(), recv(), and send().

+ Here is the caller graph for this function:

◆ recv()

void UserInterface::ItacVtf::recv ( DisCosTiC_Indextype dst,
DisCosTiC_Indextype src,
double start_ns,
double dur_ns,
double bytes,
DisCosTiC_Indextype tag )
inline

Definition at line 91 of file ItacVtf.hpp.

References ns_of(), ofs, and skip_message().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sanitize()

static std::string UserInterface::ItacVtf::sanitize ( const std::string & name)
inlinestaticprivate

Definition at line 37 of file ItacVtf.hpp.

Referenced by collective(), and comp().

+ Here is the caller graph for this function:

◆ send()

void UserInterface::ItacVtf::send ( DisCosTiC_Indextype src,
DisCosTiC_Indextype dst,
double start_ns,
double dur_ns,
double bytes,
DisCosTiC_Indextype tag )
inline

Definition at line 80 of file ItacVtf.hpp.

References ns_of(), ofs, and skip_message().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ skip_message()

static bool UserInterface::ItacVtf::skip_message ( DisCosTiC_Indextype src,
DisCosTiC_Indextype dst,
double bytes )
inlinestaticprivate

Definition at line 55 of file ItacVtf.hpp.

Referenced by recv(), and send().

+ Here is the caller graph for this function:

Member Data Documentation

◆ filename

std::string UserInterface::ItacVtf::filename
private

Definition at line 25 of file ItacVtf.hpp.

Referenced by ItacVtf().

◆ ofs

std::ofstream UserInterface::ItacVtf::ofs
private

Definition at line 24 of file ItacVtf.hpp.

Referenced by closeFile(), collective(), comp(), ItacVtf(), recv(), and send().

◆ rank

DisCosTiC_Indextype UserInterface::ItacVtf::rank = static_cast<DisCosTiC_Indextype>(-1)
private

Definition at line 26 of file ItacVtf.hpp.


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