ParallelApply can now handle many data at a time.
This commit is contained in:
parent
66c7b1f12d
commit
f4d8b43f7d
3 changed files with 57 additions and 16 deletions
|
|
@ -10,8 +10,8 @@ using namespace std;
|
|||
|
||||
// Role map
|
||||
// 0 : general master
|
||||
// 1 : worker of general job, master of subjob
|
||||
// 2 and more : workers of subjob
|
||||
// 1, 2 : worker of general job, master of subjob
|
||||
// 3 to 7 : workers of subjob
|
||||
|
||||
struct SubWork: public eoUF< int&, void >
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,9 @@ struct Test
|
|||
// These tests require at least 3 processes to be launched.
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
eo::log << eo::setlevel( eo::debug );
|
||||
bool launchOnlyOne = true;
|
||||
// eo::log << eo::setlevel( eo::debug );
|
||||
bool launchOnlyOne = false; // Set this to true if you wanna launch only the first test.
|
||||
|
||||
MpiNode::init( argc, argv );
|
||||
|
||||
vector<int> v;
|
||||
|
|
|
|||
Reference in a new issue