diff --git a/xprof/btx_tally.hpp b/xprof/btx_tally.hpp index 78e4de52..f4fb0418 100644 --- a/xprof/btx_tally.hpp +++ b/xprof/btx_tally.hpp @@ -158,7 +158,14 @@ auto get_uniq_tally(std::unordered_map, V> &input) { for (auto const &m : input) add_to_set(tuple_set, m.first, s); - return tuple_set; + //return tuple_set; + + std::vector a; + auto N = (sizeof...(K)); + for (unsigned long i=0; i < N; i++) { + a.push_back(10); + } + return a; } template >> @@ -309,16 +316,16 @@ std::ostream &operator<<(std::ostream &os, std::pair &pair) { } // Print 2 Tuple correspond to the hostname, process, ... device, subdevice. -template -void print_tally_header(std::ostream &os, const std::tuple &s, const std::tuple &h, +template +void print_tally_header(std::ostream &os, const std::vector &s, const std::tuple &h, std::index_sequence) { - ((std::get(s).size() ? os << std::get(s).size() << " " << std::get(h) << " | " + (( (I < s.size() ) ? os << s[I] << " " << std::get(h) << " | " : os << ""), ...); } -template -void print_tally_header(std::ostream &os, const std::string &header, const std::tuple &s, +template +void print_tally_header(std::ostream &os, const std::string &header, const std::vector &s, const std::tuple &h) { os << header << " | "; constexpr auto seq = std::make_index_sequence();