MPI Subgraphing Debug Statements

This commit is contained in:
Noah L. Schrick 2022-02-06 23:17:44 -06:00
parent ea713ea9cb
commit 851b032830
2 changed files with 9 additions and 3 deletions

Binary file not shown.

View File

@ -1508,6 +1508,7 @@ AGGenInstance &AGGen::sg_generate(bool batch_process, int batch_num, int numThrd
if(send_msg == 1){
world.isend(0, 2, 1);
send_msg = 0;
std::cout << "Node " << world.rank() << " finished subgraphing work." << std::endl;
if(localFrontier.size() > 0){
world.isend(0, 3, localFrontier);
}
@ -1615,9 +1616,7 @@ AGGenInstance &AGGen::sg_generate(bool batch_process, int batch_num, int numThrd
*/
}
if(localFrontier.empty() && finish_count == world.size() -2){
finished_signal = 1;
}
std::cout << "Root received all signals from nodes" << std::endl;
//Receive node frontiers and merge them into root frontier
for(int w = 2; w < world.size(); w++){
@ -1664,6 +1663,12 @@ AGGenInstance &AGGen::sg_generate(bool batch_process, int batch_num, int numThrd
}
}
}
if(localFrontier.empty() && finish_count == world.size() -2){
finished_signal = 1;
}
} //end world rank 0
} // end main work loop
@ -1674,6 +1679,7 @@ AGGenInstance &AGGen::sg_generate(bool batch_process, int batch_num, int numThrd
}
}
std::cout << "Process " << world.rank() << " is finishing" << std::endl;
world.barrier();
if(world.rank() == 0){
gettimeofday(&t2,NULL);