未验证 提交 ccbdd7aa 编写于 作者: D Dong Daxiang 提交者: GitHub

update worker_num for MPISymetricRoleMaker (#20798)

test=develop
上级 01a96463
......@@ -252,8 +252,7 @@ class MPISymetricRoleMaker(MPIRoleMaker):
return the current number of worker
"""
if self._check_role_generation():
if self.is_worker():
return self._get_size() / self._proc_per_node
return self._get_size() / self._proc_per_node
return 0
def _server_num(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册