Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fitness函数没有并行 #47

Open
zsluedem opened this issue May 11, 2019 · 4 comments
Open

fitness函数没有并行 #47

zsluedem opened this issue May 11, 2019 · 4 comments
Assignees

Comments

@zsluedem
Copy link

我看代码, 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)

@PytLab
Copy link
Owner

PytLab commented May 14, 2019

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

@PytLab PytLab added the bug label May 14, 2019
@PytLab PytLab self-assigned this May 14, 2019
@PytLab PytLab added the todo label May 14, 2019
@OOF-dura
Copy link

OOF-dura commented Aug 6, 2019

这个部分修复了吗请问

@PytLab
Copy link
Owner

PytLab commented Aug 7, 2019

Will fix it this week :)

@PytLab
Copy link
Owner

PytLab commented Aug 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants