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

"KiB" suffix in Size info attr values #659

Merged
merged 4 commits into from
Mar 26, 2024
Merged

Conversation

bgoglin
Copy link
Contributor

@bgoglin bgoglin commented Mar 26, 2024

All "...Size" info attributes (in OS device) are in KiB (except SectorSize). It's documented but may still be confusing since size structure fields (cache and memory sizes) are in bytes. Explicitly add "KiB" suffix the info attribute value.
Convert v2 strings on import. And v2 can still import those.
Apps shouldn't break unless they parsed using strtoul and checked the next character.

All info attr except SectorSize, as documented.

This does NOT break v3 import in v2 since the suffix is ignored
and assumed "KiB" by default.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
It should be "KiB" in most cases, but also handle others anyway.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
@bgoglin bgoglin merged commit 3b473a0 into open-mpi:master Mar 26, 2024
1 check passed
@bgoglin bgoglin deleted the sizeKiB branch March 26, 2024 09:56
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