Skip to content

Commit

Permalink
use mpi4py.run to avoid deadlocks in calling SumkDFTWorkers
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Dec 4, 2024
1 parent 50eb627 commit b4b0951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dcore/sumkdft_workers/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run_sumkdft(runner_cls, model_file, work_dir, mpirun_command, params):
with HDFArchive('./input.h5', 'w') as h:
h['params'] = params

commands = [sys.executable, "-m", "dcore.sumkdft_workers.mpi_main"]
commands = [sys.executable, "-m", "mpi4py", "-m", "dcore.sumkdft_workers.mpi_main"]
commands.append(runner_cls)
commands.append(model_file)
commands.append(os.path.abspath('./input.h5'))
Expand Down

0 comments on commit b4b0951

Please sign in to comment.