[Spinning Up] python starts multiple scripts with different parameters at the same time

[Spinning Up] python starts multiple scripts with different parameters at the same time

Foreword:

The last article said that using spinup's run_entrypoint.py can realize batch tuning in turn, but this still cannot be used well. Other CPU cores on our computer can only wait for one parameter to be adjusted at a time before it can be used in the current CPU core. Next, start the next process.
This is still not elegant enough~
so we use the mpi_fork function in mpi_tool.py to achieve multiple startups at the same time

Guess you like

Origin blog.csdn.net/hehedadaq/article/details/114803650