From 4675b362b913a5a1d9810dc0e9a236d35c38fde5 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 30 Jan 2022 18:16:45 -0600 Subject: [PATCH] Paritioning Fix for Task 1 --- src/ag_gen/ag_gen.cpp | 1 - src/mpi/tasks.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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();