1

How to make sense of the boost::mpi error code? For instance, what does error code 834983239 mean?

...
mpi::communicator world;
mpi::request req = world.isend(1, 1, std::string("hello"));
while(!req.test()) {
  boost::this_thread::sleep(boost::posix_time::seconds(1));
}
int errorCode = req.test()->error();
...
Ammar
  • 573
  • 1
  • 4
  • 14

1 Answers1

1

The error code is unlikely to be filled in if there was not an error (and the default behavior for Boost.MPI is to throw an exception on error, not return a code). You should not need to check error codes manually unless you have changed Boost.MPI's default error handling settings.

Jeremiah Willcock
  • 30,161
  • 7
  • 76
  • 78