Skip to content

Commit

Permalink
rsmi: fix the XGMIPeers info attribute
Browse files Browse the repository at this point in the history
Only add the last one, not all the intermediate versions.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit 52fc3d0)
  • Loading branch information
bgoglin committed Jun 11, 2021
1 parent 4c606ef commit 5e185cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hwloc/topology-rsmi.c
Expand Up @@ -296,9 +296,9 @@ hwloc_rsmi_discover(struct hwloc_backend *backend, struct hwloc_disc_status *dst
xgmi_bws[i*nb+j] = 100000; /* TODO: verify the XGMI version before putting 100GB/s here? */
got_xgmi_bws = 1;
}
if (xgmi_peers[0] != '\0')
hwloc_obj_add_info(osdev, "XGMIPeers", xgmi_peers);
}
if (xgmi_peers[0] != '\0')
hwloc_obj_add_info(osdev, "XGMIPeers", xgmi_peers);
free(xgmi_peers);
}

Expand Down

0 comments on commit 5e185cc

Please sign in to comment.