| 106 | // ---------------------------------------------------------------------------------------- |
| 107 | |
| 108 | void sum_array_driver ( |
| 109 | bsp_context& obj, |
| 110 | const std::vector<int>& v, |
| 111 | int& result |
| 112 | ) |
| 113 | { |
| 114 | obj.broadcast(v); |
| 115 | |
| 116 | result = 0; |
| 117 | int val; |
| 118 | while(obj.try_receive(val)) |
| 119 | result += val; |
| 120 | } |
| 121 | |
| 122 | void sum_array_other ( |
| 123 | bsp_context& obj |
nothing calls this directly
no test coverage detected