mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Hadrons: genetic scheduler crashes in multi-thread with 1 module, multi-threading deactivated for now
This commit is contained in:
parent
7a85fddc7e
commit
3215ae6b7e
@ -134,7 +134,7 @@ void GeneticScheduler<T>::nextGeneration(void)
|
||||
LOG(Debug) << "Starting population:\n" << *this << std::endl;
|
||||
|
||||
// random mutations
|
||||
PARALLEL_FOR_LOOP
|
||||
//PARALLEL_FOR_LOOP
|
||||
for (unsigned int i = 0; i < par_.popSize; ++i)
|
||||
{
|
||||
doMutation();
|
||||
@ -142,7 +142,7 @@ void GeneticScheduler<T>::nextGeneration(void)
|
||||
LOG(Debug) << "After mutations:\n" << *this << std::endl;
|
||||
|
||||
// mating
|
||||
PARALLEL_FOR_LOOP
|
||||
//PARALLEL_FOR_LOOP
|
||||
for (unsigned int i = 0; i < par_.popSize/2; ++i)
|
||||
{
|
||||
doCrossover();
|
||||
|
Loading…
Reference in New Issue
Block a user