How to set ‐‐bind‐to‐core ‐‐bysocket via mpi4py? #649
Answered
by
dalcinl
WanchaoYao
asked this question in
Q&A
-
I searched it for a long time, but didn't figure out how to set ‐‐bind‐to‐core ‐‐bysocket via mpi4py. |
Beta Was this translation helpful? Give feedback.
Answered by
dalcinl
May 13, 2025
Replies: 1 comment
-
mpi4py has no control on how the Python processes are executed, that's the business of the MPI process manager. In simpler words, those are options that you must pass to $ mpiexec -n 2 ‐‐bind‐to‐core ‐‐bysocket python your_script_using_mpi4py.py |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
leofang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mpi4py has no control on how the Python processes are executed, that's the business of the MPI process manager. In simpler words, those are options that you must pass to
mpiexec
to executepython
which in turn runs a script that uses mpi4py.$ mpiexec -n 2 ‐‐bind‐to‐core ‐‐bysocket python your_script_using_mpi4py.py