Paritioning Fix for Task 1

This commit is contained in:
Noah L. Schrick 2022-01-30 18:16:45 -06:00
parent 63d79e9ce1
commit 4675b362b9
2 changed files with 2 additions and 2 deletions

View File

@ -431,7 +431,6 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
if(world.rank() == 0)
{
auto current_state = localFrontier.back();
auto current_hash = current_state.get_hash(instance.facts);
localFrontier.pop_back();
for(int l=0; l < alloc; l++){
world.isend(send_check(world, l), 20, current_state);

View File

@ -74,8 +74,9 @@ void task_one(AGGenInstance &instance, NetworkState &current_state,\
//Distribute work to all nodes
for (size_t i = 0; i < esize; i++) {//for loop for applicable exploits starts
if (i % alloc != send_check(world, world.rank()))
if (i % alloc != tcomm.rank())
continue;
auto e = exploit_list.at(i);
size_t num_params = e.get_num_params();
auto preconds_q = e.precond_list_q();