20void resetLayout(QLayout *apLayout) {
23 while ((vpItem = apLayout->takeAt(0)) != 0) {
24 if (vpItem->layout()) {
25 resetLayout(vpItem->layout());
26 vpItem->layout()->deleteLater();
28 if (vpItem->widget()) {
29 vpItem->widget()->deleteLater();
36std::string communicationKindName(CommunicationKind kind) {
39 return "Blocking send";
41 return "Blocking receive";
43 return "Non-blocking send";
44 case NonBlockingReceive:
45 return "Non-blocking receive";
48 case RequestCancelled:
49 return "Request cancelled";
51 throw std::invalid_argument(
"Invalid communication kind");
55std::string collectiveCommunicationOperationName(otf2::collective_type type) {
57 case otf2::common::collective_type::barrier:
59 case otf2::common::collective_type::broadcast:
61 case otf2::common::collective_type::gather:
63 case otf2::common::collective_type::gatherv:
65 case otf2::common::collective_type::scatter:
67 case otf2::common::collective_type::scatterv:
69 case otf2::common::collective_type::all_gather:
71 case otf2::common::collective_type::all_gatherv:
73 case otf2::common::collective_type::all_to_all:
75 case otf2::common::collective_type::all_to_allv:
77 case otf2::common::collective_type::all_to_allw:
79 case otf2::common::collective_type::all_reduce:
81 case otf2::common::collective_type::reduce:
83 case otf2::common::collective_type::reduce_scatter:
84 return "Reduce Scatter";
85 case otf2::common::collective_type::scan:
87 case otf2::common::collective_type::exscan:
89 case otf2::common::collective_type::reduce_scatter_block:
90 return "Reduce Scatter Block";
91 case otf2::common::collective_type::create_handle:
92 return "Create Handle";
93 case otf2::common::collective_type::destroy_handle:
94 return "Destroy Handle";
95 case otf2::common::collective_type::allocate:
97 case otf2::common::collective_type::deallocate:
99 case otf2::common::collective_type::create_handle_and_allocate:
100 return "Create Handle And Allocate";
101 case otf2::common::collective_type::destroy_handle_and_deallocate:
102 return "Destroy Handle And Deallocate";
104 throw std::invalid_argument(
"Invalid operation type");