Putting time conditions into eo::mpi::Job and MultiParallelApply, which doesn't prefigure about number of workers evaluations.

This commit is contained in:
Benjamin Bouvier 2012-06-26 17:53:32 +02:00
commit 7b399aa1dd
6 changed files with 136 additions and 13 deletions

View file

@ -35,7 +35,7 @@
# ifdef WITH_MPI
# include <mpi/eoMpi.h>
# include <mpi/eoParallelApply.h>
# include <mpi/eoMultiParallelApply.h>
# endif // WITH_MPI
/**
@ -91,9 +91,10 @@ void parallelApply(
std::vector<EOT>& _pop,
eo::mpi::AssignmentAlgorithm& _algo,
int _masterRank,
int _packetSize)
int _packetSize,
int _maxTime)
{
eo::mpi::ParallelApply<EOT> job( _proc, _pop, _algo, _masterRank, _packetSize );
eo::mpi::MultiParallelApply<EOT> job( _proc, _pop, _algo, _masterRank, _packetSize, _maxTime );
job.run();
}
#endif