diff --git a/src/ag_gen/ag_gen.cpp b/src/ag_gen/ag_gen.cpp index b58a0a5..e7dd87a 100755 --- a/src/ag_gen/ag_gen.cpp +++ b/src/ag_gen/ag_gen.cpp @@ -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); diff --git a/src/mpi/tasks.cpp b/src/mpi/tasks.cpp index 09d8270..3ee9a94 100644 --- a/src/mpi/tasks.cpp +++ b/src/mpi/tasks.cpp @@ -74,8 +74,9 @@ void task_one(AGGenInstance &instance, NetworkState ¤t_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();