-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU core duplication in OpenMPI 5.0.5 when running multiple tasks #12884
Comments
Short answer is - you can't. It is impossible for one You have two available solutions:
Not sure what you mean about hyper-threading being enabled. That is usually a BIOS issue and has nothing to do with |
Hi, Thank you very much for your attention and answer to this question. Regarding your first suggestion, can I use the '--cpu-set 0-63' option?
I once tried the LSF job management system, and the CPU core task allocation was still duplicated. This error suggests that OpenMPI is trying to bind 64 processes to cores 0-63, but it is either not recognizing enough "slots" (resource allocation units) or is misinterpreting the core availability. Here’s why this might be happening based on the system information you provided.
I am curious why everything works fine when I use openmpi 4.1.5, but openmpi 5.0.5 will repeatedly allocate CPU tasks. I'm a beginner, I don't really understand what's going on here. Thank you again for your attention. |
I fear there is some confusion here - the scenario you originally described (getting an allocation and then executing two parallel The error you report from using the Note that LSF (if that is what you are using) is causing problems and is only weakly supported at best - IBM is no longer contributing to the project, and none of the developers have access to LSF-based machines for testing or treating bugs. So if the problem is related to LSF, I fear there is little/nothing we can do. |
Thanks. I wasn't paying special attention to LSF, though I was worried it was an unexpected problem, so I tried doing it manually in the shell as well as using the LSF system to automatically assign it, and it seemed to be the same result. Here is the result of running the command with
|
Hi all,
I encountered an issue with OpenMPI 5.0.5 on my system where multiple MPI tasks are being assigned to the same CPU cores, even though I expect distinct cores for different programs. This issue occurs when running two separate MPI jobs concurrently. Here are the details:
The first program assigns 64 MPI ranks, and the --report-bindings output shows the correct assignment of cores. However, when I run a second program while the first one is still running, MPI assigns the same cores to the second program, resulting in core overlap and suboptimal CPU usage.
First Program Command and Output
Second Program Command and Output
When I start the second program using the following command:
The second program is assigned to the same cores that the first program is already using, causing core overlap:
Workaround
For now, I found that using
--bind-to none
in OpenMPI 5.0.5 can avoid this problem by disabling core binding. However, this is not an optimal solution because it prevents MPI from utilizing core affinity optimally. I would like to know if there is a more appropriate way to correctly assign distinct cores to different programs without completely turning off the binding.Related Observations
In OpenMPI 4.1.5, I have noticed that hyper-threading is sometimes enabled unexpectedly when running MPI programs. Setting OMP_NUM_THREADS=1 seems to mitigate the issue, but I am unsure if this is related to OpenMPI, or OpenBLAS.
I would greatly appreciate any guidance on how to configure OpenMPI to avoid core duplication between concurrent MPI jobs. Additionally, I am open to suggestions or fixes that could help resolve the hyper-threading issue observed in OpenMPI 4.1.5.
N.
The text was updated successfully, but these errors were encountered: