Fix a bug in the number of workers
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2718 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
265026c090
commit
354ac605bb
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ template<template <class> class EOAlgo, class EOT>
|
|||
template<class... Args>
|
||||
paradiseo::smp::MWModel<EOAlgo,EOT>::MWModel (unsigned workersNb, Args&... args) :
|
||||
EOAlgo<EOT>(args...),
|
||||
scheduler(workersNb-1)
|
||||
scheduler(workersNb)
|
||||
{ assert(workersNb > 0); }
|
||||
|
||||
template<template <class> class EOAlgo, class EOT>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class MWModel : public EOAlgo<EOT>
|
|||
public:
|
||||
/**
|
||||
* Constructor
|
||||
* @param workersNb the number of workers including the master
|
||||
* @param workersNb the number of workers
|
||||
* @param args... list of parameters according to the constructor of your algorithm
|
||||
*/
|
||||
template<class... Args>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue