| 139 | } |
| 140 | |
| 141 | uint64_t CommLayer::sendCheckPointMessage(int argument) |
| 142 | { |
| 143 | logger(4) << "checkpoint: " << argument << '\n'; |
| 144 | assert(opt::rank != 0); |
| 145 | ControlMessage msg; |
| 146 | msg.id = m_msgID++; |
| 147 | msg.msgType = APC_CHECKPOINT; |
| 148 | msg.argument = argument; |
| 149 | |
| 150 | MPI_Send(&msg, sizeof msg, |
| 151 | MPI_BYTE, 0, APM_CONTROL, MPI_COMM_WORLD); |
| 152 | return msg.id; |
| 153 | } |
| 154 | |
| 155 | /** Send a control message to every other process. */ |
| 156 | void CommLayer::sendControlMessage(APControl m, int argument) |