Putting time conditions into eo::mpi::Job and MultiParallelApply, which doesn't prefigure about number of workers evaluations.
This commit is contained in:
parent
fc68c3b81e
commit
7b399aa1dd
6 changed files with 136 additions and 13 deletions
42
eo/src/mpi/eoTerminateJob.h
Normal file
42
eo/src/mpi/eoTerminateJob.h
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# ifndef __EO_TERMINATE_H__
|
||||
# define __EO_TERMINATE_H__
|
||||
|
||||
# include "eoMpi.h"
|
||||
|
||||
namespace eo
|
||||
{
|
||||
namespace mpi
|
||||
{
|
||||
class TerminateJob : public Job
|
||||
{
|
||||
public:
|
||||
TerminateJob( AssignmentAlgorithm& algo, int _ )
|
||||
: Job( algo, _ )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
void sendTask( int wrkRank )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
void handleResponse( int wrkRank )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
void processTask( )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
bool isFinished()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
# endif // __EO_TERMINATE_H__
|
||||
Reference in a new issue