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

end AST_HPP More...

#include <AST.hpp>

Public Member Functions

 AST (UserInterface::ConfigParser *CFG_args, DisCosTiC_Datatype numRanks)
 constructor that initializes the coordinates for sendCount, recvCount, compCount, rankCount, depCount, and curtag. (create filename)
 
 ~AST ()
 destructor
 
void InsertSrcDest ()
 append to independent set
 
void EraseSrcDest (DisCosTiC_Indextype src, DisCosTiC_Indextype dest)
 EraseSrcDest from independent set.
 
void StartOp ()
 start an operation
 
locopPair_t EndOp ()
 complete an operation
 
void Settag (DisCosTiC_Datatype tag)
 set a tag
 
void SetRank (DisCosTiC_Datatype r)
 
void SetNumRanks (DisCosTiC_Datatype nr)
 
void insertID (std::map< std::string, DisCosTiC::AST_OP * > *idTable, char *ID, DisCosTiC::AST_OP *op)
 
void insertdeserialID (std::map< std::string, DisCosTiC::AST_OP_TYPE > *idTable, char *ID, DisCosTiC::AST_OP_TYPE op)
 
void insertDep (std::map< std::string, std::string > *depTable, char *ID1, char *ID2)
 
DisCosTiC::AST_OP * retrieveID (std::map< std::string, DisCosTiC::AST_OP * > *idTable, std::string id)
 
DisCosTiC::AST_OP_TYPE retrievedeserialID (std::map< std::string, DisCosTiC::AST_OP_TYPE > *idTable, std::string id)
 
void Rank_Init (DisCosTiC_Datatype rank)
 start a rank
 
DisCosTiC::AST_OP * addNode ()
 
DisCosTiC_Datatype MaxCPU (DisCosTiC_Datatype node=0)
 
DisCosTiC_Datatype Maxnetwork (DisCosTiC_Datatype network=0)
 
DisCosTiC_Datatype getNumOps ()
 get the number of operations for each rank
 
void insertInNetwork (int src, int dst)
 
void printNCMRanks ()
 
DisCosTiC::Event Send (DisCosTiC_Datatype bufsize, DisCosTiC_Datatype dst, DisCosTiC::Event depOP)
 perform a message sending operation
 
DisCosTiC::Event Send (const void *buf, DisCosTiC_Datatype bufsize, MPI_Datatype datatype, DisCosTiC_Datatype dst, int tag, MPI_Comm comm, MPI_Request *request, DisCosTiC::Event depOP)
 perform a message sending operation
 
DisCosTiC::Event Isend (DisCosTiC_Datatype bufsize, DisCosTiC_Datatype dst, DisCosTiC::Event depOP)
 perform a non-blocking message sending operation
 
DisCosTiC::Event Isend (const void *buf, DisCosTiC_Datatype bufsize, MPI_Datatype datatype, DisCosTiC_Datatype dst, int tag, MPI_Comm comm, MPI_Request *request, DisCosTiC::Event depOP)
 perform a non-blocking message sending operation
 
DisCosTiC::Event Recv (DisCosTiC_Datatype bufsize, DisCosTiC_Datatype src, DisCosTiC::Event depOP)
 perform a message receiving operation
 
DisCosTiC::Event Recv (const void *buf, DisCosTiC_Datatype bufsize, MPI_Datatype datatype, DisCosTiC_Datatype src, int tag, MPI_Comm comm, MPI_Request *request, DisCosTiC::Event depOP)
 perform a message receiving operation
 
DisCosTiC::Event Irecv (DisCosTiC_Datatype bufsize, DisCosTiC_Datatype src, DisCosTiC::Event depOP)
 perform a non-blocking message receiving operation
 
DisCosTiC::Event Irecv (const void *buf, DisCosTiC_Datatype bufsize, MPI_Datatype datatype, DisCosTiC_Datatype src, int tag, MPI_Comm comm, MPI_Request *request, DisCosTiC::Event depOP)
 perform a non-blocking message receiving operation
 
DisCosTiC::Event Exec (std::string opname, DisCosTiC::Event depOP1, UserInterface::YAMLParser YAML_args, DisCosTiC_Datatype process_Rank, DisCosTiC_Datatype N_size_Of_Cluster, MPI_Comm comm)
 perform computation operation with blocking communication routines
 
DisCosTiC::Event Iexec (std::string opname, UserInterface::YAMLParser YAML_args, DisCosTiC::Event depOP1, DisCosTiC_Datatype process_Rank, DisCosTiC_Datatype N_size_Of_Cluster, MPI_Comm comm)
 perform computation operation with non-blocking communication routines
 
DisCosTiC::Event Collective (DisCosTiC::CollectiveType collectiveType, DisCosTiC_Datatype root, DisCosTiC_Datatype bufsize, DisCosTiC_Datatype myRank, DisCosTiC_Datatype numRanks, DisCosTiC::Event depOP, uint8_t algorithm=0)
 
void execNodeLVL (std::string &opname, UserInterface::YAMLParser YAML_args, DisCosTiC_Timetype *rt, DisCosTiC_Datatype process_Rank, DisCosTiC_Datatype N_size_Of_Cluster, MPI_Comm comm)
 
void blocking (DisCosTiC_Indextype src, DisCosTiC_Indextype dest)
 perform computation operation
 
void blockingDep (DisCosTiC::Event a, DisCosTiC::Event b)
 
void nonBlocking (DisCosTiC_Indextype src, DisCosTiC_Indextype dest)
 dependency on non-blocking send/recv operation that satisfied with start of an operation while link to wait/test loop StartDependency means that a can not be executed before b is started
 
void nonBlockingDep (DisCosTiC::Event a, DisCosTiC::Event b)
 
void print_indicesTable ()
 DEBUG: printing table that consists of node id with node type.
 
void print_indicesDeserializedTable ()
 
void print_depTable ()
 DEBUG: printing table that consist of respective node dependencies.
 
void Rank_Finalize ()
 end of each process runtime with closing loop
 
void File_Write ()
 write to output file
 

Public Attributes

std::vector< DisCosTiC::AST_OP * > allNodes
 
std::vector< DisCosTiC::AST_OP * > RootNodes
 
DisCosTiC::NCMIntraAndInterNodeData intraAndInterNodeRanks
 
DisCosTiC::NCMInterClusterData interClusterRanks
 

Private Attributes

idSetT start
 private variables required for nonblocking calls
 
idSetT end
 the operations which are independent at start and end
 
std::string content
 
std::string filename
 
std::fstream myfile
 
DisCosTiC_Indextype labelCount
 
DisCosTiC_Indextype edgesCount
 
std::vector< bool > ranks_init
 
DisCosTiC_Indextype count
 
DisCosTiC_Datatype dummyNode
 
DisCosTiC_Datatype node
 
DisCosTiC_Datatype sendCount
 
DisCosTiC_Datatype recvCount
 
DisCosTiC_Datatype compCount
 
DisCosTiC_Datatype rankCount
 
DisCosTiC_Datatype depCount
 
DisCosTiC_Datatype curtag
 
DisCosTiC_Datatype rank
 
DisCosTiC_Datatype timeunit_conv
 
std::map< std::string, DisCosTiC::AST_OP * > * indicesTable = new std::map<std::string, DisCosTiC::AST_OP *>
 
std::map< std::string, std::string > * depTable = new std::map<std::string, std::string>
 
std::map< std::string, DisCosTiC::AST_OP_TYPE > * indicesDeserializedTable = new std::map<std::string, DisCosTiC::AST_OP_TYPE>
 
DisCosTiC_Datatype mode
 
DisCosTiC_Timetype execsize
 

Detailed Description

end AST_HPP

Definition at line 57 of file AST.hpp.

Constructor & Destructor Documentation

◆ AST()

AST::AST ( UserInterface::ConfigParser * CFG_args,
DisCosTiC_Datatype numRanks )
inline

constructor that initializes the coordinates for sendCount, recvCount, compCount, rankCount, depCount, and curtag. (create filename)

Parameters
CFG_argsand numRanks

Definition at line 95 of file AST.hpp.

References AppendString, CFG_args, content, UserInterface::ConfigParser::getValue(), and intraAndInterNodeRanks.

+ Here is the call graph for this function:

◆ ~AST()

AST::~AST ( )
inline

destructor

Definition at line 125 of file AST.hpp.

References fileclose, filename, and myfile.

Member Function Documentation

◆ addNode()

DisCosTiC::AST_OP * AST::addNode ( )
inline

Definition at line 294 of file AST.hpp.

References allNodes, DisCosTiC::AST_OP::depCount, DisCosTiC::AST_OP::label, and labelCount.

Referenced by Collective(), Exec(), Iexec(), Irecv(), Irecv(), Isend(), Isend(), Recv(), Recv(), Send(), and Send().

+ Here is the caller graph for this function:

◆ blocking()

void AST::blocking ( DisCosTiC_Indextype src,
DisCosTiC_Indextype dest )
inline

perform computation operation

Parameters
[in]nameof computational phase (opname) of string datatype
[in]timeof computational phase (bufSize) of DisCosTiC_Timetype datatype

dependency on blocking send/recv operation that satisfied with start of an operation. Dependency means that a can not be executed before b is finished

Parameters
[in]srcof DisCosTiC_Indextype datatype
[in]destof DisCosTiC_Indextype datatype

Definition at line 1513 of file AST.hpp.

References AppendString, content, DisCosTiC::AST_OP::depCount, DisCosTiC::AST_OP::DepOperations, edgesCount, EraseSrcDest(), insertDep(), retrieveID(), and toCharPointer.

Referenced by blockingDep().

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

◆ blockingDep()

void AST::blockingDep ( DisCosTiC::Event a,
DisCosTiC::Event b )
inline

Definition at line 1536 of file AST.hpp.

References blocking(), insertID(), INVALID_ID, and toCharPointer.

Referenced by Collective(), Exec(), Recv(), Recv(), Send(), and Send().

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

◆ Collective()

◆ EndOp()

locopPair_t AST::EndOp ( )
inline

complete an operation

Definition at line 178 of file AST.hpp.

References DisCosTiC::BLOCKING, end, and start.

◆ EraseSrcDest()

void AST::EraseSrcDest ( DisCosTiC_Indextype src,
DisCosTiC_Indextype dest )
inline

EraseSrcDest from independent set.

Parameters
[in]srcof DisCosTiC_Indextype datatype
[in]destof DisCosTiC_Indextype datatype

Definition at line 160 of file AST.hpp.

References end, and start.

Referenced by blocking(), and nonBlocking().

+ Here is the caller graph for this function:

◆ Exec()

DisCosTiC::Event AST::Exec ( std::string opname,
DisCosTiC::Event depOP1,
UserInterface::YAMLParser YAML_args,
DisCosTiC_Datatype process_Rank,
DisCosTiC_Datatype N_size_Of_Cluster,
MPI_Comm comm )
inline

perform computation operation with blocking communication routines

Parameters
[in]nameof computational phase (opname) of string datatype
[in]timeof computational phase (bufSize) of DisCosTiC_Timetype datatype
[in]nodenumber of multinode system (node) of integer datatype

Definition at line 755 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::BLOCKING, blockingDep(), DisCosTiC::AST_OP::bufSize, CFG_args, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, DisCosTiC::COMP, DisCosTiC::COMPADD, content, execNodeLVL(), execsize, UserInterface::ConfigParser::getValue(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, node, DisCosTiC::AST_OP::node, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, timeunit_conv, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ execNodeLVL()

void AST::execNodeLVL ( std::string & opname,
UserInterface::YAMLParser YAML_args,
DisCosTiC_Timetype * rt,
DisCosTiC_Datatype process_Rank,
DisCosTiC_Datatype N_size_Of_Cluster,
MPI_Comm comm )
inline

Definition at line 891 of file AST.hpp.

References barrier, barrier_hetero, CFG_args, cores_per_socket, Machine::cores_per_socket_, end, estimation(), executeKerncraft(), NodeModel::getMachine(), UserInterface::ConfigParser::getValue(), heteregeneous_mode, kerncraftExecuted, kerncraftExecuted_1, kerncraftExecuted_2, kernel_1, kernel_2, scaling(), scaling_numa, scaling_performance, NodeModel::setMultiCore(), and system_number.

Referenced by Exec(), and Iexec().

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

◆ File_Write()

void AST::File_Write ( )
inline

write to output file

Definition at line 1657 of file AST.hpp.

References content, and myfile.

◆ getNumOps()

DisCosTiC_Datatype AST::getNumOps ( )
inline

get the number of operations for each rank

Definition at line 323 of file AST.hpp.

◆ Iexec()

DisCosTiC::Event AST::Iexec ( std::string opname,
UserInterface::YAMLParser YAML_args,
DisCosTiC::Event depOP1,
DisCosTiC_Datatype process_Rank,
DisCosTiC_Datatype N_size_Of_Cluster,
MPI_Comm comm )
inline

perform computation operation with non-blocking communication routines

Parameters
[in]nameof computational phase (opname) of string datatype
[in]timeof computational phase (bufSize) of DisCosTiC_Timetype datatype
[in]nodenumber of multinode system (node) of integer datatype

Definition at line 805 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::AST_OP::bufSize, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, DisCosTiC::COMP, content, execNodeLVL(), execsize, MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, node, DisCosTiC::AST_OP::node, DisCosTiC::NONBLOCKING, nonBlockingDep(), DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, timeunit_conv, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ insertDep()

void AST::insertDep ( std::map< std::string, std::string > * depTable,
char * ID1,
char * ID2 )
inline

Definition at line 225 of file AST.hpp.

References depTable.

Referenced by blocking(), and nonBlocking().

+ Here is the caller graph for this function:

◆ insertdeserialID()

void AST::insertdeserialID ( std::map< std::string, DisCosTiC::AST_OP_TYPE > * idTable,
char * ID,
DisCosTiC::AST_OP_TYPE op )
inline

Definition at line 219 of file AST.hpp.

◆ insertID()

void AST::insertID ( std::map< std::string, DisCosTiC::AST_OP * > * idTable,
char * ID,
DisCosTiC::AST_OP * op )
inline

Definition at line 213 of file AST.hpp.

Referenced by blockingDep(), and nonBlockingDep().

+ Here is the caller graph for this function:

◆ insertInNetwork()

void AST::insertInNetwork ( int src,
int dst )
inline

Definition at line 328 of file AST.hpp.

References interClusterRanks, intraAndInterNodeRanks, primary_cores_per_socket, primary_processes, primary_task_per_node, secondary_cores_per_socket, and secondary_task_per_node.

Referenced by Isend(), Isend(), Send(), and Send().

+ Here is the caller graph for this function:

◆ InsertSrcDest()

void AST::InsertSrcDest ( )
inline

append to independent set

Definition at line 149 of file AST.hpp.

References count, end, and start.

Referenced by Irecv(), Irecv(), Isend(), Isend(), Recv(), Recv(), Send(), and Send().

+ Here is the caller graph for this function:

◆ Irecv() [1/2]

DisCosTiC::Event AST::Irecv ( const void * buf,
DisCosTiC_Datatype bufsize,
MPI_Datatype datatype,
DisCosTiC_Datatype src,
int tag,
MPI_Comm comm,
MPI_Request * request,
DisCosTiC::Event depOP )
inline

perform a non-blocking message receiving operation

Parameters
[in]themaximum number of receiving buffer elements (bufsize: message size in bytes) of integer datatype of each send buffer element
[in]sourcerank (src) of integer datatype

Definition at line 715 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::AST_OP::bufSize, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, content, InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::NONBLOCKING, nonBlockingDep(), DisCosTiC::RECV, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ Irecv() [2/2]

DisCosTiC::Event AST::Irecv ( DisCosTiC_Datatype bufsize,
DisCosTiC_Datatype src,
DisCosTiC::Event depOP )
inline

perform a non-blocking message receiving operation

Parameters
[in]themaximum number of receiving buffer elements (bufsize: message size in bytes) of integer datatype of each send buffer element
[in]sourcerank (src) of integer datatype

Definition at line 677 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::AST_OP::bufSize, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, content, curtag, InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::NONBLOCKING, nonBlockingDep(), DisCosTiC::RECV, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ Isend() [1/2]

DisCosTiC::Event AST::Isend ( const void * buf,
DisCosTiC_Datatype bufsize,
MPI_Datatype datatype,
DisCosTiC_Datatype dst,
int tag,
MPI_Comm comm,
MPI_Request * request,
DisCosTiC::Event depOP )
inline

perform a non-blocking message sending operation

Parameters
[in]thenumber of sending buffer elements (bufsize) of integer datatype of each send buffer element
[in]destinationrank (dst) of integer datatype

Definition at line 556 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::AST_OP::bufSize, bytes_to_send, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, content, insertInNetwork(), InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::NONBLOCKING, nonBlockingDep(), DisCosTiC::SEND, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ Isend() [2/2]

DisCosTiC::Event AST::Isend ( DisCosTiC_Datatype bufsize,
DisCosTiC_Datatype dst,
DisCosTiC::Event depOP )
inline

perform a non-blocking message sending operation

Parameters
[in]thenumber of sending buffer elements (bufsize) of integer datatype of each send buffer element
[in]destinationrank (dst) of integer datatype

Definition at line 515 of file AST.hpp.

References addNode(), AppendString, DisCosTiC::AST_OP::bufSize, bytes_to_send, content, curtag, insertInNetwork(), InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::NONBLOCKING, nonBlockingDep(), DisCosTiC::SEND, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ MaxCPU()

DisCosTiC_Datatype AST::MaxCPU ( DisCosTiC_Datatype node = 0)
inline

Definition at line 304 of file AST.hpp.

References node.

Referenced by Exec(), Iexec(), Irecv(), Irecv(), Isend(), Isend(), Recv(), Recv(), Send(), and Send().

+ Here is the caller graph for this function:

◆ Maxnetwork()

DisCosTiC_Datatype AST::Maxnetwork ( DisCosTiC_Datatype network = 0)
inline

Definition at line 312 of file AST.hpp.

Referenced by Exec(), Iexec(), Irecv(), Irecv(), Isend(), Isend(), Recv(), Recv(), Send(), and Send().

+ Here is the caller graph for this function:

◆ nonBlocking()

void AST::nonBlocking ( DisCosTiC_Indextype src,
DisCosTiC_Indextype dest )
inline

dependency on non-blocking send/recv operation that satisfied with start of an operation while link to wait/test loop StartDependency means that a can not be executed before b is started

Parameters
[in]srcof DisCosTiC_Indextype datatype
[in]destof DisCosTiC_Indextype datatype

Definition at line 1557 of file AST.hpp.

References AppendString, content, DisCosTiC::AST_OP::depCount, edgesCount, EraseSrcDest(), DisCosTiC::AST_OP::IdepOperations, insertDep(), retrieveID(), and toCharPointer.

Referenced by nonBlockingDep().

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

◆ nonBlockingDep()

void AST::nonBlockingDep ( DisCosTiC::Event a,
DisCosTiC::Event b )
inline

Definition at line 1580 of file AST.hpp.

References insertID(), INVALID_ID, nonBlocking(), and toCharPointer.

Referenced by Iexec(), Irecv(), Irecv(), Isend(), and Isend().

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

◆ print_depTable()

void AST::print_depTable ( )
inline

DEBUG: printing table that consist of respective node dependencies.

Definition at line 1622 of file AST.hpp.

References depTable, DisCosTiC::getRange(), rank, and rankCount.

+ Here is the call graph for this function:

◆ print_indicesDeserializedTable()

void AST::print_indicesDeserializedTable ( )
inline

Definition at line 1607 of file AST.hpp.

References DisCosTiC::getRange(), indicesDeserializedTable, print_DeserialNodeNonPointerT, rank, and rankCount.

+ Here is the call graph for this function:

◆ print_indicesTable()

void AST::print_indicesTable ( )
inline

DEBUG: printing table that consists of node id with node type.

Definition at line 1595 of file AST.hpp.

References DisCosTiC::getRange(), indicesTable, print_DeserialNodeT, rank, and rankCount.

+ Here is the call graph for this function:

◆ printNCMRanks()

void AST::printNCMRanks ( )
inline

Definition at line 394 of file AST.hpp.

References interClusterRanks, and intraAndInterNodeRanks.

Referenced by main().

+ Here is the caller graph for this function:

◆ Rank_Finalize()

void AST::Rank_Finalize ( )
inline

end of each process runtime with closing loop

Definition at line 1645 of file AST.hpp.

References AppendString, and content.

◆ Rank_Init()

void AST::Rank_Init ( DisCosTiC_Datatype rank)
inline

start a rank

Parameters
[in]processorrank of integer type

< reset label counter

Definition at line 272 of file AST.hpp.

References AppendString, content, rank, and SetRank().

+ Here is the call graph for this function:

◆ Recv() [1/2]

DisCosTiC::Event AST::Recv ( const void * buf,
DisCosTiC_Datatype bufsize,
MPI_Datatype datatype,
DisCosTiC_Datatype src,
int tag,
MPI_Comm comm,
MPI_Request * request,
DisCosTiC::Event depOP )
inline

perform a message receiving operation

Parameters
[in]themaximum number of receiving buffer elements (bufsize: message size in bytes) of integer datatype of each send buffer element
[in]sourcerank (src) of integer datatype

Definition at line 638 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::BLOCKING, blockingDep(), DisCosTiC::AST_OP::bufSize, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, content, curtag, InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::RECV, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ Recv() [2/2]

DisCosTiC::Event AST::Recv ( DisCosTiC_Datatype bufsize,
DisCosTiC_Datatype src,
DisCosTiC::Event depOP )
inline

perform a message receiving operation

Parameters
[in]themaximum number of receiving buffer elements (bufsize: message size in bytes) of integer datatype of each send buffer element
[in]sourcerank (src) of integer datatype

Definition at line 600 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::BLOCKING, blockingDep(), DisCosTiC::AST_OP::bufSize, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, content, curtag, InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::RECV, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ retrievedeserialID()

DisCosTiC::AST_OP_TYPE AST::retrievedeserialID ( std::map< std::string, DisCosTiC::AST_OP_TYPE > * idTable,
std::string id )
inline

Definition at line 250 of file AST.hpp.

◆ retrieveID()

DisCosTiC::AST_OP * AST::retrieveID ( std::map< std::string, DisCosTiC::AST_OP * > * idTable,
std::string id )
inline

Definition at line 232 of file AST.hpp.

Referenced by blocking(), and nonBlocking().

+ Here is the caller graph for this function:

◆ Send() [1/2]

DisCosTiC::Event AST::Send ( const void * buf,
DisCosTiC_Datatype bufsize,
MPI_Datatype datatype,
DisCosTiC_Datatype dst,
int tag,
MPI_Comm comm,
MPI_Request * request,
DisCosTiC::Event depOP )
inline

perform a message sending operation

Parameters
[in]thenumber of sending buffer elements (bufsize) of integer datatype of each send buffer element
[in]destinationrank (dst) of integer datatype

Definition at line 470 of file AST.hpp.

References addNode(), DisCosTiC::AST_OP::algorithm, AppendString, DisCosTiC::BLOCKING, blockingDep(), DisCosTiC::AST_OP::bufSize, bytes_to_send, DisCosTiC::AST_OP::collectiveNumRanks, DisCosTiC::AST_OP::collectiveRoot, DisCosTiC::AST_OP::collectiveType, content, curtag, insertInNetwork(), InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::SEND, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ Send() [2/2]

DisCosTiC::Event AST::Send ( DisCosTiC_Datatype bufsize,
DisCosTiC_Datatype dst,
DisCosTiC::Event depOP )
inline

perform a message sending operation

Parameters
[in]thenumber of sending buffer elements (bufsize) of integer datatype of each send buffer element
[in]destinationrank (dst) of integer datatype

Definition at line 429 of file AST.hpp.

References addNode(), AppendString, DisCosTiC::BLOCKING, blockingDep(), DisCosTiC::AST_OP::bufSize, bytes_to_send, content, curtag, insertInNetwork(), InsertSrcDest(), MaxCPU(), Maxnetwork(), DisCosTiC::AST_OP::mode, DisCosTiC::AST_OP::network, DisCosTiC::AST_OP::node, DisCosTiC::SEND, DisCosTiC::AST_OP::tag, DisCosTiC::AST_OP::target, and DisCosTiC::AST_OP::type.

+ Here is the call graph for this function:

◆ SetNumRanks()

void AST::SetNumRanks ( DisCosTiC_Datatype nr)
inline

Definition at line 207 of file AST.hpp.

◆ SetRank()

void AST::SetRank ( DisCosTiC_Datatype r)
inline

Definition at line 201 of file AST.hpp.

Referenced by Rank_Init().

+ Here is the caller graph for this function:

◆ Settag()

void AST::Settag ( DisCosTiC_Datatype tag)
inline

set a tag

Parameters
[in]messagetag of integer type

Definition at line 196 of file AST.hpp.

◆ StartOp()

void AST::StartOp ( )
inline

start an operation

Definition at line 169 of file AST.hpp.

References end, and start.

Member Data Documentation

◆ allNodes

std::vector<DisCosTiC::AST_OP *> AST::allNodes

Definition at line 60 of file AST.hpp.

Referenced by addNode().

◆ compCount

DisCosTiC_Datatype AST::compCount
private

Definition at line 79 of file AST.hpp.

◆ content

std::string AST::content
private

◆ count

DisCosTiC_Indextype AST::count
private

Definition at line 77 of file AST.hpp.

Referenced by InsertSrcDest().

◆ curtag

DisCosTiC_Datatype AST::curtag
private

Definition at line 79 of file AST.hpp.

Referenced by Irecv(), Isend(), Recv(), Recv(), Send(), and Send().

◆ depCount

DisCosTiC_Datatype AST::depCount
private

Definition at line 79 of file AST.hpp.

◆ depTable

std::map<std::string, std::string>* AST::depTable = new std::map<std::string, std::string>
private

Definition at line 83 of file AST.hpp.

Referenced by insertDep(), and print_depTable().

◆ dummyNode

DisCosTiC_Datatype AST::dummyNode
private

Definition at line 78 of file AST.hpp.

◆ edgesCount

DisCosTiC_Indextype AST::edgesCount
private

Definition at line 74 of file AST.hpp.

Referenced by blocking(), and nonBlocking().

◆ end

idSetT AST::end
private

the operations which are independent at start and end

Definition at line 71 of file AST.hpp.

Referenced by EndOp(), EraseSrcDest(), execNodeLVL(), InsertSrcDest(), and StartOp().

◆ execsize

DisCosTiC_Timetype AST::execsize
private

Definition at line 87 of file AST.hpp.

Referenced by Exec(), and Iexec().

◆ filename

std::string AST::filename
private

Definition at line 72 of file AST.hpp.

Referenced by ~AST().

◆ indicesDeserializedTable

std::map<std::string, DisCosTiC::AST_OP_TYPE>* AST::indicesDeserializedTable = new std::map<std::string, DisCosTiC::AST_OP_TYPE>
private

Definition at line 84 of file AST.hpp.

Referenced by print_indicesDeserializedTable().

◆ indicesTable

std::map<std::string, DisCosTiC::AST_OP *>* AST::indicesTable = new std::map<std::string, DisCosTiC::AST_OP *>
private

Definition at line 82 of file AST.hpp.

Referenced by print_indicesTable().

◆ interClusterRanks

DisCosTiC::NCMInterClusterData AST::interClusterRanks

Definition at line 65 of file AST.hpp.

Referenced by insertInNetwork(), ncm_overlap_ranks(), and printNCMRanks().

◆ intraAndInterNodeRanks

DisCosTiC::NCMIntraAndInterNodeData AST::intraAndInterNodeRanks

Definition at line 64 of file AST.hpp.

Referenced by AST(), insertInNetwork(), ncm_overlap_ranks(), and printNCMRanks().

◆ labelCount

DisCosTiC_Indextype AST::labelCount
private

Definition at line 74 of file AST.hpp.

Referenced by addNode().

◆ mode

DisCosTiC_Datatype AST::mode
private

Definition at line 86 of file AST.hpp.

◆ myfile

std::fstream AST::myfile
private

Definition at line 73 of file AST.hpp.

Referenced by File_Write(), and ~AST().

◆ node

DisCosTiC_Datatype AST::node
private

Definition at line 78 of file AST.hpp.

Referenced by Exec(), Iexec(), and MaxCPU().

◆ rank

DisCosTiC_Datatype AST::rank
private

◆ rankCount

DisCosTiC_Datatype AST::rankCount
private

Definition at line 79 of file AST.hpp.

Referenced by print_depTable(), print_indicesDeserializedTable(), and print_indicesTable().

◆ ranks_init

std::vector<bool> AST::ranks_init
private

Definition at line 76 of file AST.hpp.

◆ recvCount

DisCosTiC_Datatype AST::recvCount
private

Definition at line 79 of file AST.hpp.

◆ RootNodes

std::vector<DisCosTiC::AST_OP *> AST::RootNodes

Definition at line 61 of file AST.hpp.

◆ sendCount

DisCosTiC_Datatype AST::sendCount
private

Definition at line 79 of file AST.hpp.

◆ start

idSetT AST::start
private

private variables required for nonblocking calls

Definition at line 71 of file AST.hpp.

Referenced by EndOp(), EraseSrcDest(), InsertSrcDest(), and StartOp().

◆ timeunit_conv

DisCosTiC_Datatype AST::timeunit_conv
private

Definition at line 80 of file AST.hpp.

Referenced by Exec(), and Iexec().


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