+ 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:
Caner Candan 2011-01-27 10:29:09 +01:00
commit ecd8f7ec03
3 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,7 @@
#define _apply_h #define _apply_h
#include <utils/eoParallel.h> #include <utils/eoParallel.h>
#include <utils/eoParser.h>
#include <eoFunctor.h> #include <eoFunctor.h>
#include <vector> #include <vector>
#include <omp.h> #include <omp.h>

View file

@ -98,6 +98,10 @@ eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription,
readFrom(stream); readFrom(stream);
processParam(needHelp); processParam(needHelp);
processParam(stopOnUnknownParam); processParam(stopOnUnknownParam);
//multithreading
processParam(eo::parallelizeLoopParam);
//multithreading ends
} }

View file

@ -92,7 +92,6 @@ private :
std::vector<eoParam*> ownedParams; std::vector<eoParam*> ownedParams;
}; };
/** /**
eoParser: command line parser and configuration file reader eoParser: command line parser and configuration file reader
This class is persistent, so it can be stored and reloaded to restore This class is persistent, so it can be stored and reloaded to restore