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

tests/backends.c: fix a failure when /sys isn't available on Linux on non-x86 #570

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

bgoglin
Copy link
Contributor

@bgoglin bgoglin commented Feb 27, 2023

Since 2.9, Linux discovery aborts if /sys isn't available. Usually it will fallback to the x86 backend... except on non-x86 platforms obviously where it would fallback to "noos" instead.

The hwloc_backends.c test verified that the "Backend" info attribute was the same in the XML-loaded topology and the original topology, but it did not handle the case where that info attribute did not exist at all, which is the case when only "noos" is used.

This is first reported by Simon South on https://issues.guix.gnu.org/61493
Thanks to Ludovic Courtes for forwarding to me.

… non-x86

Since 2.9, Linux discovery aborts if /sys isn't available.
Usually it will fallback to the x86 backend... except on non-x86 platforms obviously
where it would fallback to "noos" instead.

The hwloc_backends.c test verified that the "Backend" info attribute was the same
in the XML-loaded topology and the original topology, but it did not handle the
case where that info attribute did not exist at all, which is the case when
only "noos" is used.

This is first reported by Simon South on https://issues.guix.gnu.org/61493
Thanks to Ludovic Courtes for forwarding to me.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
@bgoglin bgoglin merged commit 0780a3b into open-mpi:master Mar 7, 2023
mbakke pushed a commit to guix-mirror/guix that referenced this pull request Apr 7, 2023
* gnu/packages/mpi.scm (hwloc-2): Update to 2.9.1.

Patch to skip tests requiring /sys on non-x86 systems should not be
necessary anymore, as open-mpi/hwloc#570 has
been merged in this new version.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
mbakke pushed a commit to guix-mirror/guix that referenced this pull request Apr 12, 2023
* gnu/packages/mpi.scm (hwloc-2): Update to 2.9.1.

Patch to skip tests requiring /sys on non-x86 systems should not be
necessary anymore, as open-mpi/hwloc#570 has
been merged in this new version.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant