debugger.hpp 916 B

1234567891011121314151617181920212223242526
  1. // Copyright AlainMiniussi 20014 - 20015.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include <vector>
  6. #include "boost/mpi/communicator.hpp"
  7. /**
  8. * @brief Extract the MPI rank to pause.
  9. *
  10. * Right now, just atois alla the parameters in argv....
  11. */
  12. std::vector<int> extract_paused_ranks(int argc, char** argv);
  13. /**
  14. * @print Print rank pid map and wait if requested.
  15. * @param processes Wait if our rank is in there.
  16. * @param comm The communicator to consider.
  17. *
  18. * Once the debugger has attached to the process, it is expected to
  19. * set the local variable 'i' to 0 to let the process restarts.
  20. */
  21. void wait_for_debugger(std::vector<int> const& processes, boost::mpi::communicator const& comm);
  22. /** @override */
  23. void wait_for_debugger(boost::mpi::communicator const& comm);