gaft icon indicating copy to clipboard operation
gaft copied to clipboard

fitness函数没有并行

Open zsluedem opened this issue 5 years ago • 4 comments

我看代码, fitness运行并没有并行啊,如果是mpi master的话会全部都算一次啊

                # The best individual in current population. 
                if mpi.is_master:
                    best_indv = self.population.best_indv(self.fitness)
                else:
                    best_indv = None
                best_indv = mpi.bcast(best_indv)

zsluedem avatar May 11 '19 05:05 zsluedem

谢谢指出,此处忘记判断进程数了,我会在后续更新中修复这里。因为本人最近需要忙于其他事情,如果可以也欢迎pr 😁

PytLab avatar May 14 '19 14:05 PytLab

这个部分修复了吗请问

OOF-dura avatar Aug 06 '19 15:08 OOF-dura

Will fix it this week :)

PytLab avatar Aug 07 '19 05:08 PytLab

Thanks for your support, let's make it better :D

PytLab avatar Aug 07 '19 07:08 PytLab