IntelĀ® Machine Learning Scaling Library  2018
A library providing an efficient implementation of communication patterns used in deep learning.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
MLSL::Statistics Class Reference

A class to measure and store performance statistics of communication among processes that perform computation in the computational graph. More...

#include <mlsl.hpp>

Public Member Functions

void Start ()
 
void Stop ()
 
void Reset ()
 
bool IsStarted ()
 
bool IsEnabled ()
 
void Print ()
 
unsigned long long GetIsolationCommCycles (size_t opIdx)
 
size_t GetCommSize (size_t opIdx)
 
unsigned long long GetCommCycles (size_t opIdx)
 
unsigned long long GetComputeCycles (size_t opIdx)
 
unsigned long long GetTotalIsolationCommCycles ()
 
size_t GetTotalCommSize ()
 
unsigned long long GetTotalCommCycles ()
 
unsigned long long GetTotalComputeCycles ()
 

Detailed Description

A class to measure and store performance statistics of communication among processes that perform computation in the computational graph.

Member Function Documentation

unsigned long long MLSL::Statistics::GetCommCycles ( size_t  opIdx)

Returns the communication time of a particular operation.

Parameters
opIdxoperation's index
Returns
The time in CPU clock cyles
size_t MLSL::Statistics::GetCommSize ( size_t  opIdx)

Returns the communication size of a particular operation.

Parameters
opIdxthe operation index
Returns
The size value in bytes.
unsigned long long MLSL::Statistics::GetComputeCycles ( size_t  opIdx)

Returns the compute time of a particular operation.

Parameters
opIdxoperation's index
Returns
The time in CPU clock cyles
unsigned long long MLSL::Statistics::GetIsolationCommCycles ( size_t  opIdx)

Returns the isolation communication time of a particular operation for one iteration.

Parameters
opIdxoperation's index
Returns
The time in CPU clock cyles
unsigned long long MLSL::Statistics::GetTotalCommCycles ( )

Returns the total communication time for all operations.

Returns
The time in CPU clock cyles.
size_t MLSL::Statistics::GetTotalCommSize ( )

Returns the total communication size.

Returns
The size value in bytes.
unsigned long long MLSL::Statistics::GetTotalComputeCycles ( )

Returns the total compute time for all operations.

Returns
The time in CPU clock cyles.
unsigned long long MLSL::Statistics::GetTotalIsolationCommCycles ( )

Returns the total isolation communication time for all operations for one iteration.

Returns
The time in CPU clock cyles
bool MLSL::Statistics::IsEnabled ( )
Returns
True if statistics collection is enabled, false otherwise.
bool MLSL::Statistics::IsStarted ( )
Returns
True if the statistics collection is started, false otherwise.
void MLSL::Statistics::Print ( )

Prints the measured statistics information.

void MLSL::Statistics::Reset ( )

Clears the measured statistics information.

void MLSL::Statistics::Start ( )

Starts statistics collection.

void MLSL::Statistics::Stop ( )

Stops statistics collection.


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