SyTen
tensor_timer_bare.cpp File Reference

Implementation for inc/tensor/tensor_timer.h More...

#include <chrono>
#include "inc/util/tensor_timer_bare.h"
#include "inc/util/tensor_timer.h"
#include "inc/util/time_output.h"
#include "inc/util/vec.h"
#include "inc/util/envvars.h"
+ Include dependency graph for tensor_timer_bare.cpp:

Classes

struct  syten::TensorTimer::DataPoint
 A timed tensor product data point. More...
 
struct  syten::TensorTimer::TimerSentinelPrinter
 A sentinel class which prints the collected timer data on destruction. More...
 

Namespaces

namespace  syten
 Syten namespace.
 

Functions

std::ostreamsyten::TensorTimer::operator<< (std::ostream &out, DataPointType type)
 Output for a DataPointType. More...
 
void syten::TensorTimer::timer_add_copy (SourceLocation const &location, SRDef wall_time, SRDef cpu_time, Index blocks_in, Index rank_in, MemoryUsage::MemorySize mem_in)
 Add a data point to the list of stored timed tensor copies. More...
 
void syten::TensorTimer::timer_add_decomp (SourceLocation const &location, DataPointType type, SRDef wall_time, SRDef cpu_time, Index blocks_in, Index rank_in, MemoryUsage::MemorySize mem_in, Index blocks_pout, Index rank_pout, MemoryUsage::MemorySize mem_pout, Index blocks_sout, Index rank_sout, MemoryUsage::MemorySize mem_sout)
 Adds a data point to the list of stored timed tensor decompositions. More...
 
void syten::TensorTimer::timer_add_product (SourceLocation const &location, SRDef wall_time, SRDef cpu_time, Index blocks_a, Index blocks_b, Index blocks_c, Index rank_a, Index rank_b, Index rank_c, MemoryUsage::MemorySize mem_a, MemoryUsage::MemorySize mem_b, MemoryUsage::MemorySize mem_c)
 Adds a data point to the list of stored timed tensor products. More...
 
void syten::TensorTimer::timer_print_data (std::ostream &out)
 Prints the stored data to the specified stream. More...
 
void syten::TensorTimer::timer_reset ()
 Deletes all data. More...
 

Variables

struct syten::TensorTimer::TimerSentinelPrinter syten::TensorTimer::sentinel
 sentinel object, prints data on destruction. More...
 
Vec< DataPoint > syten::TensorTimer::timer_data
 Storage of completed tensor products. More...
 
std::mutex syten::TensorTimer::timer_data_mtx
 Mutex protecting timer_data More...
 

Detailed Description

Implementation for inc/tensor/tensor_timer.h