Skip to content
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

OpenMPI does not build on machine with six cores #13945

Closed
schiotz opened this issue Sep 9, 2021 · 3 comments · Fixed by easybuilders/easybuild-easyblocks#2611
Closed

OpenMPI does not build on machine with six cores #13945

schiotz opened this issue Sep 9, 2021 · 3 comments · Fixed by easybuilders/easybuild-easyblocks#2611
Milestone

Comments

@schiotz
Copy link
Contributor

schiotz commented Sep 9, 2021

Hi,

Building OpenMPI/4.0.5-GCC-10.2.0 fails on a desktop with 6 cores and hyperthreading, because the sanity check attempts to run with 8 tasks, and mpiexec refuses to run with more tasks than there are physical cpus. The error is "Not enough slots to satisfy the 8 slots that were requested."

Maybe the test suite should be run with an option to allow oversubscribing the cpu cores?

CC: @matthewhelmi

@branfosj
Copy link
Member

branfosj commented Sep 9, 2021

I think building with --parallel 6 will solve this issue.

More generally, we may want to reduce the 8 at https://github.com/easybuilders/easybuild-easyblocks/blob/develop/easybuild/easyblocks/o/openmpi.py#L182 to be 6 (or 4).

@schiotz
Copy link
Contributor Author

schiotz commented Sep 9, 2021

I think building with --parallel 6 will solve this issue.

More generally, we may want to reduce the 8 at https://github.com/easybuilders/easybuild-easyblocks/blob/develop/easybuild/easyblocks/o/openmpi.py#L182 to be 6 (or 4).

Or maybe this: easybuilders/easybuild-easyblocks#2570
where we try not to use more than half the cores, assuming that hyperthreading amplifies the number of cores by a factor 2.

@boegel
Copy link
Member

boegel commented Dec 9, 2021

This should be fixed now, thanks to the tweak in the OpenMPI easyblock that was implemented in easybuilders/easybuild-easyblocks#2611...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants