MCPcopy Create free account
hub / github.com/NanoComp/meep / timing_data_vector_from_all

Function timing_data_vector_from_all

src/time.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68std::vector<double> timing_data_vector_from_all(const time_sink_to_duration_map &timers) {
69 std::vector<double> time_spent_vector = timing_data_vector(timers);
70 const int n = count_processors();
71 std::vector<double> alltimes_tmp(n * time_spent_vector.size());
72 for (size_t i = 0; i < time_spent_vector.size(); ++i) {
73 alltimes_tmp[i * n + my_rank()] = time_spent_vector[i];
74 }
75
76 std::vector<double> alltimes(alltimes_tmp.size());
77 sum_to_all(alltimes_tmp.data(), alltimes.data(), alltimes_tmp.size());
78 return alltimes;
79}
80
81void pt(double mean, double stddev, const char *label) {
82 if (mean != 0) {

Callers 3

print_timesMethod · 0.85
output_timesMethod · 0.85
get_timing_dataMethod · 0.85

Calls 4

timing_data_vectorFunction · 0.85
count_processorsFunction · 0.85
my_rankFunction · 0.85
sum_to_allFunction · 0.85

Tested by

no test coverage detected