mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01: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;
|
LOG(Debug) << "Starting population:\n" << *this << std::endl;
|
||||||
|
|
||||||
// random mutations
|
// random mutations
|
||||||
PARALLEL_FOR_LOOP
|
//PARALLEL_FOR_LOOP
|
||||||
for (unsigned int i = 0; i < par_.popSize; ++i)
|
for (unsigned int i = 0; i < par_.popSize; ++i)
|
||||||
{
|
{
|
||||||
doMutation();
|
doMutation();
|
||||||
@ -142,7 +142,7 @@ void GeneticScheduler<T>::nextGeneration(void)
|
|||||||
LOG(Debug) << "After mutations:\n" << *this << std::endl;
|
LOG(Debug) << "After mutations:\n" << *this << std::endl;
|
||||||
|
|
||||||
// mating
|
// mating
|
||||||
PARALLEL_FOR_LOOP
|
//PARALLEL_FOR_LOOP
|
||||||
for (unsigned int i = 0; i < par_.popSize/2; ++i)
|
for (unsigned int i = 0; i < par_.popSize/2; ++i)
|
||||||
{
|
{
|
||||||
doCrossover();
|
doCrossover();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user