Skip to content

How to set ‐‐bind‐to‐core ‐‐bysocket via mpi4py? #649

Answered by dalcinl
WanchaoYao asked this question in Q&A
Discussion options

You must be logged in to vote

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 execute python which in turn runs a script that uses mpi4py.

$ mpiexec -n 2 ‐‐bind‐to‐core ‐‐bysocket python your_script_using_mpi4py.py

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by leofang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #648 on May 13, 2025 07:38.