+ now you are able to enable or not parallelization with the option --parallelize-loops=1|0
This commit is contained in:
parent
fbc212f80d
commit
07c22771cf
3 changed files with 22 additions and 5 deletions
|
|
@ -61,6 +61,9 @@ eoParameterLoader::~eoParameterLoader()
|
|||
}
|
||||
}
|
||||
|
||||
//multithreading
|
||||
eoValueParam<bool> eo::parallelizeLoopParam = eoValueParam<bool>(false, "parallelize-loop", "Enable memory shared parallelization into evaluation's loops", '\0');
|
||||
//multithreading ends
|
||||
|
||||
eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription,
|
||||
string _lFileParamName, char _shortHand) :
|
||||
|
|
@ -99,6 +102,10 @@ eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription,
|
|||
readFrom(stream);
|
||||
processParam(needHelp);
|
||||
processParam(stopOnUnknownParam);
|
||||
|
||||
//multithreading
|
||||
processParam(eo::parallelizeLoopParam);
|
||||
//multithreading ends
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,12 @@ private :
|
|||
};
|
||||
|
||||
|
||||
//multithreading
|
||||
namespace eo
|
||||
{
|
||||
extern eoValueParam<bool> parallelizeLoopParam;
|
||||
}
|
||||
//multithreading ends
|
||||
|
||||
/**
|
||||
eoParser: command line parser and configuration file reader
|
||||
|
|
|
|||
Reference in a new issue