fix(eoParallel): declutch _t_start under _OPENMP
This commit is contained in:
parent
df8c457f75
commit
a6a3f799e7
2 changed files with 6 additions and 2 deletions
|
|
@ -39,8 +39,10 @@ eoParallel::eoParallel() :
|
||||||
_nthreads( 0, "parallelize-nthreads", "Define the number of threads you want to use, nthreads = 0 means you want to use all threads available", '\0' ),
|
_nthreads( 0, "parallelize-nthreads", "Define the number of threads you want to use, nthreads = 0 means you want to use all threads available", '\0' ),
|
||||||
_enableResults( false, "parallelize-enable-results", "Enable the generation of results", '\0' ),
|
_enableResults( false, "parallelize-enable-results", "Enable the generation of results", '\0' ),
|
||||||
_doMeasure( false, "parallelize-do-measure", "Do some measures during execution", '\0' ),
|
_doMeasure( false, "parallelize-do-measure", "Do some measures during execution", '\0' ),
|
||||||
_packetSize( 1U, "parallelize-packet-size", "Number of elements which should be sent in a single message during a parallel evaluation based on message passing.", '\0'),
|
_packetSize( 1U, "parallelize-packet-size", "Number of elements which should be sent in a single message during a parallel evaluation based on message passing.", '\0')
|
||||||
_t_start(0)
|
#ifdef _OPENMP
|
||||||
|
, _t_start(0)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,9 @@ private:
|
||||||
eoValueParam<bool> _enableResults;
|
eoValueParam<bool> _enableResults;
|
||||||
eoValueParam<bool> _doMeasure;
|
eoValueParam<bool> _doMeasure;
|
||||||
eoValueParam<unsigned int> _packetSize;
|
eoValueParam<unsigned int> _packetSize;
|
||||||
|
#ifdef _OPENMP
|
||||||
double _t_start;
|
double _t_start;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
void make_parallel(eoParser&);
|
void make_parallel(eoParser&);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue