MCPcopy Create free account
hub / github.com/BirolLab/abyss / sendControlMessageToNode

Method sendControlMessageToNode

Parallel/CommLayer.cpp:164–176  ·  view source on GitHub ↗

Send a control message to a specific node. */

Source from the content-addressed store, hash-verified

162
163/** Send a control message to a specific node. */
164uint64_t CommLayer::sendControlMessageToNode(int nodeID,
165 APControl m, int argument)
166{
167 assert(opt::rank == 0);
168 ControlMessage msg;
169 msg.id = m_msgID++;
170 msg.msgType = m;
171 msg.argument = argument;
172
173 MPI_Send(&msg, sizeof msg,
174 MPI_BYTE, nodeID, APM_CONTROL, MPI_COMM_WORLD);
175 return msg.id;
176}
177
178/** Receive a control message. */
179ControlMessage CommLayer::receiveControlMessage()

Callers 1

controlPopBubblesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected