-
Notifications
You must be signed in to change notification settings - Fork 10
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 fail on ppc64 #15
Comments
Thanks for the report @eclipseo! Could you please share the content of the files in |
tklauser
added a commit
that referenced
this issue
Aug 16, 2021
It seems the assumption that `getconf _NPROCESSORS_CONF` returns the number of CPUs in `/sys/devices/system/cpu/present` is not always true on all systems. Inspecting the code of glibc's getconf implementation it seems the value returned by `getconf _NPROCESSORS_CONF` is the total number of `cpuN` directories found in `/sys/devices/system/cpu` while `numcpus.GetPresent` reads `/sys/devices/system/cpu/present`. Thus, drop the check to avoid failing tests where this might not be true (such as on some ppc64 systems. Fixes #15
tklauser
added a commit
that referenced
this issue
Aug 16, 2021
It seems the assumption that `getconf _NPROCESSORS_CONF` returns the number of CPUs in `/sys/devices/system/cpu/present` is not always true on all systems. Inspecting the code of glibc's getconf implementation it seems the value returned by `getconf _NPROCESSORS_CONF` is the total number of `cpuN` directories found in `/sys/devices/system/cpu` while `numcpus.GetPresent` reads `/sys/devices/system/cpu/present`. Thus, drop the check to avoid failing tests where this might not be true (such as on some ppc64 systems. Fixes #15
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While building on Fedora Rawhide on ppc64le, numcpus doesn't seem to work properly:
The text was updated successfully, but these errors were encountered: