Skip to content

Commit

Permalink
🐛 修复退磁测试案例中worker搜索失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yanang007 committed Jan 1, 2023
1 parent 5e2c969 commit 3a7b796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demag/main_demag.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def main(grid_size):
if __name__ == '__main__':
executor = get_exec_config() # LinearExecutor(1) #

workers = [w for w in executor.get_workers() if w.group == 'lab' and w.id is None]
workers = [w for w in executor.get_workers() if 'large-mem' in w.group]
if len(workers) == 1:
f = executor.submit(main, [1.2, 1.2, 0.8], workers=workers)
else:
Expand Down

0 comments on commit 3a7b796

Please sign in to comment.