+ now you are able to enable or not parallelization with the option --parallelize-loops=1|0
Conflicts: eo/src/apply.h eo/src/utils/eoParser.cpp eo/src/utils/eoParser.h
This commit is contained in:
parent
007c29e736
commit
ecd8f7ec03
3 changed files with 5 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#define _apply_h
|
||||
|
||||
#include <utils/eoParallel.h>
|
||||
#include <utils/eoParser.h>
|
||||
#include <eoFunctor.h>
|
||||
#include <vector>
|
||||
#include <omp.h>
|
||||
|
|
|
|||
|
|
@ -98,6 +98,10 @@ eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription,
|
|||
readFrom(stream);
|
||||
processParam(needHelp);
|
||||
processParam(stopOnUnknownParam);
|
||||
|
||||
//multithreading
|
||||
processParam(eo::parallelizeLoopParam);
|
||||
//multithreading ends
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@ private :
|
|||
std::vector<eoParam*> ownedParams;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
eoParser: command line parser and configuration file reader
|
||||
This class is persistent, so it can be stored and reloaded to restore
|
||||
|
|
|
|||
Reference in a new issue