+ now you are able to enable or not parallelization with the option --parallelize-loops=1|0

This commit is contained in:
Caner Candan 2010-12-23 18:09:25 +01:00 committed by Caner Candan
commit 07c22771cf
3 changed files with 22 additions and 5 deletions

View file

@ -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
}