forked from UTulsa-Research/ag_gen
Just ignore all of these lol
This commit is contained in:
parent
2a93d23cfb
commit
4b5c500d21
@ -384,7 +384,7 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
|
|||||||
|
|
||||||
//Create Communicators
|
//Create Communicators
|
||||||
boost::mpi::communicator tcomm = world.split(world.rank() > 0 && world.rank() <= alloc);
|
boost::mpi::communicator tcomm = world.split(world.rank() > 0 && world.rank() <= alloc);
|
||||||
boost::mpi::communicator ttwo_comm = world.split(world.rank() == send_check(world, alloc) && world.rank() <= (2*two_alloc));
|
boost::mpi::communicator ttwo_comm = world.split(world.rank() >= send_check(world, alloc) && world.rank() <= (2*two_alloc));
|
||||||
|
|
||||||
while (!localFrontier.empty() || !unex_empty() || world.rank() > 0){//while starts
|
while (!localFrontier.empty() || !unex_empty() || world.rank() > 0){//while starts
|
||||||
|
|
||||||
|
|||||||
@ -156,7 +156,8 @@ void task_two(AGGenInstance &instance, int alloc, int two_alloc, boost::mpi::com
|
|||||||
std::deque<NetworkState> &localFrontier, double mem_threshold, boost::mpi::communicator &ttwo_comm,\
|
std::deque<NetworkState> &localFrontier, double mem_threshold, boost::mpi::communicator &ttwo_comm,\
|
||||||
std::vector<std::string> ex_groups, std::unordered_map<size_t, int> &hash_map){
|
std::vector<std::string> ex_groups, std::unordered_map<size_t, int> &hash_map){
|
||||||
|
|
||||||
std::cout << "Process rank " << world.rank() << " with " << two_alloc << " node(s) allocated has started Task 2." << std::endl;
|
std::cout << "Process rank " << world.rank() << " with " << two_alloc <<\
|
||||||
|
" node(s) allocated has started Task 2 with local communicator rank of " << ttwo_comm.rank() << std::endl;
|
||||||
|
|
||||||
NetworkState current_state;
|
NetworkState current_state;
|
||||||
std::vector<std::tuple<Exploit, AssetGroup>> appl_exploits;
|
std::vector<std::tuple<Exploit, AssetGroup>> appl_exploits;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user