Skip to content

Commit

Permalink
flux-version: report hwloc.api=x.y.z instead of hwloc=x.y.z
Browse files Browse the repository at this point in the history
Problem: The hwloc version reported by `flux version` is the build time
libhwloc API version, not the actual libhwloc version. This can cause
confusion for users that are expecting this string to report the library
version.

Hint that the HWLOC version reported is an API version by changing the
string to `hwloc.api`.

Fixes #6637
  • Loading branch information
grondo committed Feb 14, 2025
1 parent 820dd72 commit 36a1c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/builtin/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static int cmd_version (optparse_t *p, int ac, char *av[])
#if HAVE_LIBSYSTEMD
printf ("+systemd");
#endif
printf ("+hwloc==%d.%d.%d",
printf ("+hwloc.api==%d.%d.%d",
HWLOC_API_VERSION >> 16 & 0x000000ff,
HWLOC_API_VERSION >> 8 & 0x000000ff,
HWLOC_API_VERSION & 0x000000ff
Expand Down

0 comments on commit 36a1c08

Please sign in to comment.